首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Azure容器服务无法安装docker-engine

Azure容器服务无法安装docker-engine
EN

Stack Overflow用户
提问于 2017-05-05 15:25:15
回答 1查看 218关注 0票数 0

我已经部署了一个新的资源组和kubernetes集群,使用acs-engine在VSTS中通过这些ARM模板提取文章并发布。但是,当您通过ssh进入主docker-engine时,kubernetes集群就被创建了。正在运行

代码语言:javascript
复制
`systemctl status kubelet` 

显示服务已死,当您尝试运行它时,它会显示docker.service已死。无法启动,因为docker引擎不在那里。

代码语言:javascript
复制
Reading package lists...
May  4 17:32:27 ubuntu cloud-init[2488]: W: GPG error: 
https://apt.dockerproject.org/repo ubuntu-xenial InRelease: The 
following signatures couldn't be verified because the public key is not 
available: NO_PUBKEY F76221572C52609D
May  4 17:32:27 ubuntu cloud-init[2488]: W: The repository 
'https://apt.dockerproject.org/repo ubuntu-xenial InRelease' is not 
signed.
May  4 17:32:27 ubuntu cloud-init[2488]: Reading package lists...
May  4 17:32:27 ubuntu cloud-init[2488]: Building dependency tree...
May  4 17:32:27 ubuntu cloud-init[2488]: Reading state information...
May  4 17:32:27 ubuntu cloud-init[2488]: The following additional         
packages will be installed:
May  4 17:32:27 ubuntu cloud-init[2488]:   aufs-tools cgroupfs-mount 
libltdl7
May  4 17:32:27 ubuntu cloud-init[2488]: Suggested packages:
May  4 17:32:27 ubuntu cloud-init[2488]:   mountall
May  4 17:32:27 ubuntu cloud-init[2488]: The following NEW packages 
will be installed:
May  4 17:32:27 ubuntu cloud-init[2488]:   aufs-tools cgroupfs-mount 
docker-engine libltdl7
May  4 17:32:27 ubuntu cloud-init[2488]: 0 upgraded, 4 newly installed, 
0 to remove and 176 not upgraded.
May  4 17:32:27 ubuntu cloud-init[2488]: Need to get 19.4 MB/19.5 MB of 
archives.
May  4 17:32:27 ubuntu cloud-init[2488]: After this operation, 102 MB 
of additional disk space will be used.
May  4 17:32:27 ubuntu cloud-init[2488]: WARNING: The following 
packages cannot be authenticated!
May  4 17:32:27 ubuntu cloud-init[2488]:   docker-engine
May  4 17:32:27 ubuntu cloud-init[2488]: E: There were unauthenticated 
packages and -y was used without --allow-unauthenticated
May  4 17:32:27 ubuntu cloud-init[2488]: Failed to restart 
docker.service: Unit docker.service not found.
May  4 17:32:28 ubuntu cloud-init[2488]: usermod: group 'docker' does 
not exist

当您尝试运行一个apt-get install docker-engine时,它会失败,正如您在上面看到的。

通过运行sudo apt-get install -y --allow-unauthenticated docker-engine,您可以安装docker引擎并启动kubelet服务。然后,您可以从主服务器访问集群。

但是,由于没有创建.kube/config,因此您无法从外部源访问它。我可以从主机创建.kube/config,现在正在研究这一点。

这个问题需要解决,因为我正在自动化环境部署。

EN

回答 1

Stack Overflow用户

发布于 2017-05-09 03:05:49

PR https://github.com/Azure/acs-engine/pull/498修复了获取GPG失败的问题。您能确认您使用的是最新的acs-engine吗?如果是,请发送您看到此消息的区域。

为了确认正确运行,我刚刚在我们西部部署了ACS-Engine中的最新版本,还验证了我们的跑步者没有在Azure区域显示此问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43798949

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档