繁体   English   中英

Docker-Machine置备的AWS实例无法启动Docker引擎

[英]Docker-Machine provisioned aws instance can not start docker engine

当我使用以下命令启动EC2实例时

docker-machine create --driver amazonec2 --amazonec2-region eu-central-1  --amazonec2-instance-type t2.2xlarge aws-test

docker-machine可以创建VM,交换证书,但引擎启动失败。

登录EC2:

 ubuntu@aws-manager2:~$ systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: e Drop-In: /etc/systemd/system/docker.service.d └─10-machine.conf Active: inactive (dead) (Result: exit-code) since Thu 2017-06-29 09:18:44 UTC Docs: https://docs.docker.com Process: 5263 ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2376 -H unix:/ Main PID: 5263 (code=exited, status=1/FAILURE) Jun 29 09:18:44 aws-manager2 systemd[1]: Failed to start Docker Application Cont Jun 29 09:18:44 aws-manager2 systemd[1]: docker.service: Unit entered failed sta Jun 29 09:18:44 aws-manager2 systemd[1]: docker.service: Failed with result 'exi Jun 29 09:18:44 aws-manager2 systemd[1]: docker.service: Service hold-off time o Jun 29 09:18:44 aws-manager2 systemd[1]: Stopped Docker Application Container En Jun 29 09:18:44 aws-manager2 systemd[1]: docker.service: Start request repeated Jun 29 09:18:44 aws-manager2 systemd[1]: Failed to start Docker Application Cont lines 1-16/16 (END)...skipping... ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/docker.service.d └─10-machine.conf Active: inactive (dead) (Result: exit-code) since Thu 2017-06-29 09:18:44 UTC; 1min 53s ago Docs: https://docs.docker.com Process: 5263 ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --s Main PID: 5263 (code=exited, status=1/FAILURE) Jun 29 09:18:44 aws-manager2 systemd[1]: Failed to start Docker Application Container Engine. Jun 29 09:18:44 aws-manager2 systemd[1]: docker.service: Unit entered failed state. Jun 29 09:18:44 aws-manager2 systemd[1]: docker.service: Failed with result 'exit-code'. Jun 29 09:18:44 aws-manager2 systemd[1]: docker.service: Service hold-off time over, scheduling restart. Jun 29 09:18:44 aws-manager2 systemd[1]: Stopped Docker Application Container Engine. Jun 29 09:18:44 aws-manager2 systemd[1]: docker.service: Start request repeated too quickly. Jun 29 09:18:44 aws-manager2 systemd[1]: Failed to start Docker Application Container Engine. 

启动时登录:

 $ docker-machine create --driver amazonec2 --amazonec2-region eu-central-1 --amazonec2-instance-type t2.2xlarge aws-manager2 Running pre-create checks... Creating machine... (aws-manager2) Launching instance... Waiting for machine to be running, this may take a few minutes... Detecting operating system of created instance... Waiting for SSH to be available... Detecting the provisioner... Provisioning with ubuntu(systemd)... Installing Docker... Copying certs to the local machine directory... Copying certs to the remote machine... Setting Docker configuration on the remote daemon... Error creating machine: Error running provisioning: ssh command error: command : sudo systemctl -f start docker err : exit status 1 output : Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. 

昨天,它使用相同的配置。 从昨天开始,二手AIM可能会有变化吗? 我从其他主机尝试过,但也收到相同的错误。

似乎昨天发布的Docker版本中存在一个错误。 我们的解决方法:

docker-machine create --driver amazonec2 --engine-install-url=https://web.archive.org/web/20170623081500/https://get.docker.com

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM