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

时间:2017-05-05 07:25:15

标签: azure-container-service

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

`systemctl status kubelet` 

显示该服务已经死亡,当您尝试运行它时,说docker.service已经死了。这无法启动,因为docker引擎不存在。

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,现在正在研究它。

这需要在我自动化环境部署时修复。

1 个答案:

答案 0 :(得分:1)

PR @Enumerated修复了无法撤回GPG的问题。您能否确认您使用的是最新的交流引擎?如果是,请发送您所看到的地区。

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