docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

docker-machine --engine-label ec2 doesn't work #4453

Open mschipperheyn opened 6 years ago

mschipperheyn commented 6 years ago

OS: Mac OS 10.13 docker-machine: 0.14.0

docker-machine create --driver amazonec2 \
--amazonec2-region sa-east-1 \
--engine-label "My Development" \
--amazonec2-instance-type "t2.medium" \
my-development

Output

Running pre-create checks...
Creating machine...
(my-development) 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.
mschipperheyn commented 6 years ago

Looks like the problem occurs because of the engine-label. Any value there leads to the error occurring. Not really sure why. Without it, it seems to work

ghost commented 6 years ago

There is no engine label parameter for amazonec2 driver in the docs https://docs.docker.com/machine/drivers/aws/#environment-variables