Docker Community Forums

Share and learn in the Docker community.

Docker-machine fails to create machine on AWS region eu-west-1


(Windsource) #1

I run the following command to create a machine in the AWS region eu-west-1 and it fails at the end when systemctl shall enable the docker egine:

$ docker-machine create --driver amazonec2 --amazonec2-region eu-west-1 aws-dock2

Running pre-create checks...
Creating machine...
(aws-dock2) 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 enable docker
err     : exit status 255
output  : 
$ 

When I afterwards login to the machine and call sudo systemctl -f enable docker it works.

The problem does not occur when using the default AWS region N. Virginia.

Has anyone seen a similar problem?

Version:

$ docker-machine -v
docker-machine version 0.15.0, build HEAD
$ docker -v
Docker version 18.06.0-ce, build 0ffa8257ec
$ uname -a
Linux holger-manjaro 4.14.66-1-MANJARO #1 SMP PREEMPT Wed Aug 22 21:45:26 UTC 2018 x86_64 GNU/Linux
$