Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Failed to Create Digitalocean Machine #4189

Closed
brandontamm opened this issue Jul 10, 2017 · 22 comments
Closed

Failed to Create Digitalocean Machine #4189

brandontamm opened this issue Jul 10, 2017 · 22 comments

Comments

@brandontamm
Copy link

$ docker-machine -D create --driver digitalocean --digitalocean-access-token=TOKEN-INTENTIONALLY-HIDDEN* --digitalocean-image=26137125 --digitalocean-region=tor1 --digitalocean-size=2gb --digitalocean-ipv6=true --digitalocean-private-networking=true --digitalocean-backups=false qa3

Docker Machine Version: 0.12.0, build 45c69ad
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver digitalocean
Plugin server listening at address 127.0.0.1:53445
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver digitalocean
Plugin server listening at address 127.0.0.1:53449
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(qa3) Calling .GetMachineName
(qa3) Calling .DriverName
(qa3) Calling .GetCreateFlags
(qa3) Calling .SetConfigFromFlags
Running pre-create checks...
(qa3) Calling .PreCreateCheck
(qa3) Calling .GetConfigRaw
Creating machine...
(qa3) Calling .Create
(qa3) Creating SSH key...
(qa3) Creating Digital Ocean droplet...
(qa3) Waiting for IP address to be assigned to the Droplet...
(qa3) DBG | Created droplet ID 54633549, IP address IP-ADDRESS-HIDDEN
(qa3) Calling .GetConfigRaw
(qa3) Calling .DriverName
(qa3) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(qa3) Calling .GetState
(qa3) Calling .GetState
(qa3) Calling .GetState
(qa3) Calling .GetState
(qa3) Calling .GetState
(qa3) Calling .GetState
(qa3) Calling .GetState
(qa3) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err : exit status 255
output :
Getting to WaitForSSH function...
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
exit 0
SSH cmd err, output: :
Detecting the provisioner...
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: : NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Couldn't set key VERSION_CODENAME, no corresponding struct field found
Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
found compatible host: ubuntu
Provisioning with ubuntu(systemd)...
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
stat -f -c %T /var/lib
SSH cmd err, output: : ext2/ext3

No storagedriver specified, using aufs

setting hostname
(qa3) Calling .GetMachineName
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
sudo hostname qa3 && echo "qa3" | sudo tee /etc/hostname
SSH cmd err, output: : qa3

(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:

	if ! grep -xq '.*\sqa3' /etc/hosts; then
		if grep -xq '127.0.1.1\s.*' /etc/hosts; then
			sudo sed -i 's/^127.0.1.1\s.*/127.0.1.1 qa3/g' /etc/hosts;
		else 
			echo '127.0.1.1 qa3' | sudo tee -a /etc/hosts; 
		fi
	fi

SSH cmd err, output: :
installing base packages
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
sudo apt-get update
SSH cmd err, output: : Hit:1 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Get:2 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu xenial/main Sources [868 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu xenial/restricted Sources [4,808 B]
Get:7 http://mirrors.digitalocean.com/ubuntu xenial/universe Sources [7,728 kB]
Hit:8 https://download.docker.com/linux/ubuntu xenial InRelease
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main Sources [78.4 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,604 B]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [35.0 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,144 B]
Get:13 http://mirrors.digitalocean.com/ubuntu xenial/multiverse Sources [179 kB]
Get:14 http://mirrors.digitalocean.com/ubuntu xenial-updates/main Sources [258 kB]
Get:15 http://mirrors.digitalocean.com/ubuntu xenial-updates/restricted Sources [3,000 B]
Get:16 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe Sources [164 kB]
Get:17 http://mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Sources [5,668 B]
Get:18 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [574 kB]
Get:19 http://mirrors.digitalocean.com/ubuntu xenial-updates/main Translation-en [232 kB]
Get:20 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [504 kB]
Get:21 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe Translation-en [196 kB]
Get:22 http://mirrors.digitalocean.com/ubuntu xenial-backports/main Sources [3,312 B]
Get:23 http://mirrors.digitalocean.com/ubuntu xenial-backports/universe Sources [4,384 B]
Fetched 11.1 MB in 3s (2,856 kB/s)
Reading package lists...

package: action=install name=curl
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y curl
SSH cmd err, output: : Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.47.0-1ubuntu2.2).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Installing Docker...
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
if ! type docker; then curl -sSL https://get.docker.com | sh -; fi
SSH cmd err, output: : docker is /usr/bin/docker

waiting for docker daemon
checking docker daemon
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
sudo docker version
SSH cmd err, output: : Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:23:31 2017
OS/Arch: linux/amd64

Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:19:04 2017
OS/Arch: linux/amd64
Experimental: false

configuring auth
(qa3) Calling .GetMachineName
(qa3) Calling .GetIP
Copying certs to the local machine directory...
generating server cert: /Users/test/.docker/machine/machines/qa3/server.pem ca-key=/Users/test/.docker/machine/certs/ca.pem private-key=/Users/test/.docker/machine/certs/ca-key.pem org=btamm.qa3 san=[IP-ADDRESS-HIDDEN localhost]
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
sudo systemctl -f stop docker
SSH cmd err, output: :
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
if [ ! -z "$(ip link show docker0)" ]; then sudo ip link delete docker0; fi
SSH cmd err, output: :
Copying certs to the remote machine...
(qa3) Calling .GetSSHHostname
(qa3) Calling .GetSSHPort
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHKeyPath
(qa3) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/test/.docker/machine/machines/qa3/id_rsa (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i /Users/test/.docker/machine/machines/qa3/id_rsa -p 22] /usr/bin/ssh }
About to run SSH command:
printf '%s' '-----BEGIN CERTIFICATE-----
CERTIFICATE-KEY-REMOVED-FOR-OBVIOUS-REASONS*
-----END CERTIFICATE-----
' | sudo tee /etc/docker/ca.pem
SSH cmd err, output: exit status 255:
Error creating machine: Error running provisioning: ssh command error:
command : printf '%s' '-----BEGIN CERTIFICATE-----
CERTIFICATE-KEY-REMOVED-FOR-OBVIOUS-REASONS*
-----END CERTIFICATE-----
' | sudo tee /etc/docker/ca.pem
err : exit status 255
output :
notifying bugsnag: [Error creating machine: Error running provisioning: ssh command error:
command : printf '%s' '-----BEGIN CERTIFICATE-----
CERTIFICATE-KEY-REMOVED-FOR-OBVIOUS-REASONS*
-----END CERTIFICATE-----
' | sudo tee /etc/docker/ca.pem
err : exit status 255
output : ]

@mcku
Copy link

mcku commented Jul 11, 2017

I cannot create machine using docker-machine 0.12.0 as well. Please upgrade it to 0.12.1, You can download it through homebrew, it is not part of the latest Docker CE (Docker 17.06.0-ce-mac18) yet.

@brandontamm
Copy link
Author

@mcku - I attempted your idea by uninstalling all traces of docker and reinstalling docker, docker-compose and docker-machine via home-brew... However, I am receiving the same error. Any ideas?

➜ machines docker -v
Docker version 17.06.0-ce, build 02c1d87
➜ machines docker-compose -v
docker-compose version 1.14.0, build unknown
➜ machines docker-machine -v
docker-machine version 0.12.1, build c8b17e8
➜ machines docker-machine create --driver digitalocean --digitalocean-access-token=83efe9ca58100263f5f2216dbaa6d877a39dd51507aaa9716d10e7ce9b50bba5 --digitalocean-image=ubuntu-16-04-x64 --digitalocean-region=tor1 --digitalocean-size=2gb --digitalocean-ipv6=true --digitalocean-private-networking=true --digitalocean-backups=false qa2
➜ machines docker-machine create --driver digitalocean --digitalocean-access-token=$$$TOKEN-HIDDEN$$$ --digitalocean-image=docker-16-04 --digitalocean-region=tor1 --digitalocean-size=2gb --digitalocean-ipv6=true --digitalocean-private-networking=true --digitalocean-backups=false qa2
Running pre-create checks...
Creating machine...
(qa2) Creating SSH key...
(qa2) Creating Digital Ocean droplet...
(qa2) Waiting for IP address to be assigned to the Droplet...
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...
Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f stop docker
err : exit status 255
output :

@brandontamm
Copy link
Author

brandontamm commented Jul 11, 2017

I just re-ran with full detail and the detail is exactly the same as my initial post. It looks like the issue was not fixed with 0.12.1 - but you said it is working for you? Did you receive same error outputs?

@brandontamm
Copy link
Author

If anyone needs to downgrade until this issue is fixed - https://download.docker.com/mac/stable/16048/Docker.dmg

@brandontamm
Copy link
Author

List of Docker-machine versions that I have tried and experienced same issue:

Maybe there is an issue on the host side of the machine that is being created with the docker code - maybe a bad version there? I have successfully created machines with these versions in the past, so I am unsure of why so many older versions of the Docker-for-mac and docker-machine in general would be broken?

@mcku
Copy link

mcku commented Jul 11, 2017

@brandontamm after checking now, docker-machine has become v0.12.0 again. It turned out that Docker CE overwrites the symlink at /usr/local/bin/docker-machine. In my situtation I had installed docker-machine through homebrew (but Docker Mac from their website) and then

$ brew link docker-machine 
Linking /usr/local/Cellar/docker-machine/0.12.1... 5 symlinks created
$ which docker-machine
/usr/local/bin/docker-machine
$ docker-machine -v
docker-machine version 0.12.1, build c8b17e8

Start Docker CE for Mac (which has bundled 0.12.0).. It replaces the symlink..

$ docker-machine -v
docker-machine version 0.12.0, build 45c69ad

To fix that docker-machine is to be linked again. It's simple but I would close Docker Mac executable first. And do not open it until your machine gets created.

$ brew unlink docker-machine 
Unlinking /usr/local/Cellar/docker-machine/0.12.1... 4 symlinks removed
$ brew link docker-machine  --overwrite
Linking /usr/local/Cellar/docker-machine/0.12.1... 5 symlinks created

No errors this way.. HTH..

Running pre-create checks...
Creating machine...
(dockerHostFraTmp) Creating SSH key...
(dockerHostFraTmp) Creating Digital Ocean droplet...
(dockerHostFraTmp) Waiting for IP address to be assigned to the Droplet...
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...
Checking connection to Docker...
Docker is up and running!

@brandontamm
Copy link
Author

brandontamm commented Jul 11, 2017

I attempted your solution and I get all the steps above correctly, but then when I try to create the docker-machine, this happens:

Running pre-create checks...
Creating machine...
(qa3) Creating SSH key...
(qa3) Creating Digital Ocean droplet...
(qa3) Waiting for IP address to be assigned to the Droplet...
Error creating machine: Error in driver during machine creation: invalid character 'L' looking for beginning of value

Haven't seen that error before. Any ideas?

@brandontamm
Copy link
Author

docker-machine create is having issues in general - fails upon creation, leaving you able to ssh to server ... however, users cannot upgrade or provision server and there are issues on the actual server itself. For instance, when attempting to resize a digital ocean machine, the re-size fails and Digitalocean support is blaming the docker-machine create command that left something in a broken state.

@brandontamm
Copy link
Author

@shin- Still happening in v0.12.2

➜ bin docker-machine -v
docker-machine version 0.12.2, build 9371605
➜ bin docker-machine create --driver digitalocean --digitalocean-access-token=TOKEN-REMOVED --digitalocean-image=docker-16-04 --digitalocean-region=tor1 --digitalocean-size=16gb --digitalocean-ipv6=true --digitalocean-private-networking=true --digitalocean-backups=false --engine-storage-driver=overlay2 qa3
Running pre-create checks...
Creating machine...
(qa3) Creating SSH key...
(qa3) Creating Digital Ocean droplet...
(qa3) Waiting for IP address to be assigned to the Droplet...
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...
Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f stop docker
err : exit status 255
output :

@shin-
Copy link
Contributor

shin- commented Jul 17, 2017

It's somewhat related. I think it's mostly caused by the updated distribution channels for 17.06 engine which seems to break with older Ubuntu images. I'll have to check where this is set for DO.

@brandontamm
Copy link
Author

brandontamm commented Jul 17, 2017 via email

@brandontamm
Copy link
Author

➜ bin docker-machine create --driver digitalocean --digitalocean-access-token=TOKEN-REMOVE* --digitalocean-image=docker-16-04 --digitalocean-region=tor1 --digitalocean-size=16gb --digitalocean-ipv6=true --digitalocean-private-networking=true --digitalocean-backups=false qa4
Running pre-create checks...
Creating machine...
(qa4) Creating SSH key...
(qa4) Creating Digital Ocean droplet...
(qa4) Waiting for IP address to be assigned to the Droplet...
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...
Error creating machine: Error running provisioning: error installing docker:
➜ bin docker-machine -v
docker-machine version 0.12.2, build 9371605
➜ bin

@brandontamm
Copy link
Author

Alright here is the result of "NOT" using the --engine-storage-driver flag...

➜ bin docker-machine -D create --driver digitalocean --digitalocean-access-token=TOKEN-REMOVED --digitalocean-image=docker-16-04 --digitalocean-region=tor1 --digitalocean-size=16gb --digitalocean-ipv6=true --digitalocean-private-networking=true --digitalocean-backups=false qa4

Docker Machine Version: 0.12.2, build 9371605
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver digitalocean
Plugin server listening at address 127.0.0.1:55828
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver digitalocean
Plugin server listening at address 127.0.0.1:55832
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(qa4) Calling .GetMachineName
(qa4) Calling .DriverName
(qa4) Calling .GetCreateFlags
(qa4) Calling .SetConfigFromFlags
Running pre-create checks...
(qa4) Calling .PreCreateCheck
(qa4) Calling .GetConfigRaw
Creating machine...
(qa4) Calling .Create
(qa4) Creating SSH key...
(qa4) Creating Digital Ocean droplet...
(qa4) Waiting for IP address to be assigned to the Droplet...
(qa4) DBG | Created droplet ID 55354494, IP address IP-REMOVED
(qa4) Calling .GetConfigRaw
(qa4) Calling .DriverName
(qa4) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(qa4) Calling .GetState
(qa4) Calling .GetState
(qa4) Calling .GetState
(qa4) Calling .GetState
(qa4) Calling .GetState
(qa4) Calling .GetState
(qa4) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(qa4) Calling .GetSSHHostname
(qa4) Calling .GetSSHPort
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-PATH-REMOVED (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-REMOVED -o IdentitiesOnly=yes -i SSH-PATH-REMOVED -p 22] /usr/bin/ssh }
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err : exit status 255
output :
Getting to WaitForSSH function...
(qa4) Calling .GetSSHHostname
(qa4) Calling .GetSSHPort
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-PATH-REMOVED (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-REMOVED -o IdentitiesOnly=yes -i SSH-PATH-REMOVED -p 22] /usr/bin/ssh }
About to run SSH command:
exit 0
SSH cmd err, output: :
Detecting the provisioner...
(qa4) Calling .GetSSHHostname
(qa4) Calling .GetSSHPort
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-PATH-REMOVED (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-REMOVED -o IdentitiesOnly=yes -i SSH-PATH-REMOVED -p 22] /usr/bin/ssh }
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: : NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Couldn't set key VERSION_CODENAME, no corresponding struct field found
Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
found compatible host: ubuntu
Provisioning with ubuntu(systemd)...
(qa4) Calling .GetSSHHostname
(qa4) Calling .GetSSHPort
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-PATH-REMOVED (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-REMOVED -o IdentitiesOnly=yes -i SSH-PATH-REMOVED -p 22] /usr/bin/ssh }
About to run SSH command:
stat -f -c %T /var/lib
SSH cmd err, output: : ext2/ext3

No storagedriver specified, using aufs

setting hostname
(qa4) Calling .GetMachineName
(qa4) Calling .GetSSHHostname
(qa4) Calling .GetSSHPort
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-PATH-REMOVED (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-REMOVED -o IdentitiesOnly=yes -i SSH-PATH-REMOVED -p 22] /usr/bin/ssh }
About to run SSH command:
sudo hostname qa4 && echo "qa4" | sudo tee /etc/hostname
SSH cmd err, output: : qa4

(qa4) Calling .GetSSHHostname
(qa4) Calling .GetSSHPort
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-PATH-REMOVED (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-REMOVED -o IdentitiesOnly=yes -i SSH-PATH-REMOVED -p 22] /usr/bin/ssh }
About to run SSH command:

	if ! grep -xq '.*\sqa4' /etc/hosts; then
		if grep -xq '127.0.1.1\s.*' /etc/hosts; then
			sudo sed -i 's/^127.0.1.1\s.*/127.0.1.1 qa4/g' /etc/hosts;
		else 
			echo '127.0.1.1 qa4' | sudo tee -a /etc/hosts; 
		fi
	fi

SSH cmd err, output: :
installing base packages
(qa4) Calling .GetSSHHostname
(qa4) Calling .GetSSHPort
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-PATH-REMOVED (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-REMOVED -o IdentitiesOnly=yes -i SSH-PATH-REMOVED -p 22] /usr/bin/ssh }
About to run SSH command:
sudo apt-get update
SSH cmd err, output: : Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:1 http://nyc2.mirrors.digitalocean.com/ubuntu xenial InRelease
Get:3 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates InRelease [102 kB]
Get:5 https://download.docker.com/linux/ubuntu xenial InRelease [29.5 kB]
Get:4 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-backports InRelease [102 kB]
Get:6 http://nyc2.mirrors.digitalocean.com/ubuntu xenial/main Sources [868 kB]
Get:7 http://nyc2.mirrors.digitalocean.com/ubuntu xenial/restricted Sources [4,808 B]
Get:8 http://nyc2.mirrors.digitalocean.com/ubuntu xenial/universe Sources [7,728 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/main Sources [79.5 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,604 B]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [36.6 kB]
Get:21 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,144 B]
Get:23 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [304 kB]
Get:9 http://nyc2.mirrors.digitalocean.com/ubuntu xenial/multiverse Sources [179 kB]
Get:10 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main Sources [259 kB]
Get:11 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/restricted Sources [3,000 B]
Get:12 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/universe Sources [164 kB]
Get:14 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Sources [6,948 B]
Get:15 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [578 kB]
Get:17 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main Translation-en [234 kB]
Get:19 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [505 kB]
Get:20 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/universe Translation-en [196 kB]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [129 kB]
Get:22 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse amd64 Packages [14.9 kB]
Get:24 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Translation-en [7,476 B]
Get:28 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [145 kB]
Get:26 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-backports/main Sources [3,312 B]
Get:27 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-backports/universe Sources [4,404 B]
Get:29 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [74.8 kB]
Get:30 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2,748 B]
Fetched 11.9 MB in 3s (3,665 kB/s)
Reading package lists...

package: action=install name=curl
(qa4) Calling .GetSSHHostname
(qa4) Calling .GetSSHPort
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-PATH-REMOVED (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-REMOVED -o IdentitiesOnly=yes -i SSH-PATH-REMOVED -p 22] /usr/bin/ssh }
About to run SSH command:
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y curl
SSH cmd err, output: : Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.47.0-1ubuntu2.2).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.

Installing Docker...
(qa4) Calling .GetSSHHostname
(qa4) Calling .GetSSHPort
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHKeyPath
(qa4) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-PATH-REMOVED (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-REMOVED -o IdentitiesOnly=yes -i SSH-PATH-REMOVED -p 22] /usr/bin/ssh }
About to run SSH command:
if ! type docker; then curl -sSL https://get.docker.com | sh -; fi
SSH cmd err, output: exit status 255:
Error creating machine: Error running provisioning: error installing docker:
notifying bugsnag: [Error creating machine: Error running provisioning: error installing docker: ]

@brandontamm
Copy link
Author

Alright here is the result of "USING" the --engine-storage-driver flag...

➜ bin docker-machine -D create --driver digitalocean --digitalocean-access-token=TOKEN-HIDDEN --digitalocean-image=docker-16-04 --digitalocean-region=tor1 --digitalocean-size=16gb --digitalocean-ipv6=true --digitalocean-private-networking=true --digitalocean-backups=false --engine-storage-driver=overlay2 qa7
Docker Machine Version: 0.12.2, build 9371605
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver digitalocean
Plugin server listening at address 127.0.0.1:56034
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver digitalocean
Plugin server listening at address 127.0.0.1:56038
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(qa7) Calling .GetMachineName
(qa7) Calling .DriverName
(qa7) Calling .GetCreateFlags
(qa7) Calling .SetConfigFromFlags
Running pre-create checks...
(qa7) Calling .PreCreateCheck
(qa7) Calling .GetConfigRaw
Creating machine...
(qa7) Calling .Create
(qa7) Creating SSH key...
(qa7) Creating Digital Ocean droplet...
(qa7) Waiting for IP address to be assigned to the Droplet...
(qa7) DBG | Created droplet ID 55354974, IP address IP-ADDRESS-HIDDEN
(qa7) Calling .GetConfigRaw
(qa7) Calling .DriverName
(qa7) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(qa7) Calling .GetState
(qa7) Calling .GetState
(qa7) Calling .GetState
(qa7) Calling .GetState
(qa7) Calling .GetState
(qa7) Calling .GetState
(qa7) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err : exit status 255
output :
Getting to WaitForSSH function...
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
exit 0
SSH cmd err, output: :
Detecting the provisioner...
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: : NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Couldn't set key VERSION_CODENAME, no corresponding struct field found
Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
found compatible host: ubuntu
Provisioning with ubuntu(systemd)...
setting hostname
(qa7) Calling .GetMachineName
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
sudo hostname qa7 && echo "qa7" | sudo tee /etc/hostname
SSH cmd err, output: : qa7

(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:

	if ! grep -xq '.*\sqa7' /etc/hosts; then
		if grep -xq '127.0.1.1\s.*' /etc/hosts; then
			sudo sed -i 's/^127.0.1.1\s.*/127.0.1.1 qa7/g' /etc/hosts;
		else 
			echo '127.0.1.1 qa7' | sudo tee -a /etc/hosts; 
		fi
	fi

SSH cmd err, output: :
installing base packages
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
sudo apt-get update
SSH cmd err, output: : Hit:1 http://nyc2.mirrors.digitalocean.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:2 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates InRelease [102 kB]
Get:4 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-backports InRelease [102 kB]
Get:5 http://nyc2.mirrors.digitalocean.com/ubuntu xenial/main Sources [868 kB]
Get:6 https://download.docker.com/linux/ubuntu xenial InRelease [29.5 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main Sources [79.5 kB]
Get:7 http://nyc2.mirrors.digitalocean.com/ubuntu xenial/restricted Sources [4,808 B]
Get:8 http://nyc2.mirrors.digitalocean.com/ubuntu xenial/universe Sources [7,728 kB]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,604 B]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [36.6 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,144 B]
Get:21 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [304 kB]
Get:24 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [129 kB]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [145 kB]
Get:28 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [74.8 kB]
Get:9 http://nyc2.mirrors.digitalocean.com/ubuntu xenial/multiverse Sources [179 kB]
Get:10 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main Sources [259 kB]
Get:12 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/restricted Sources [3,000 B]
Get:14 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/universe Sources [164 kB]
Get:15 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Sources [6,948 B]
Get:17 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [578 kB]
Get:30 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2,748 B]
Get:19 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/main Translation-en [234 kB]
Get:20 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [505 kB]
Get:22 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/universe Translation-en [196 kB]
Get:23 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse amd64 Packages [14.9 kB]
Get:26 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Translation-en [7,476 B]
Get:27 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-backports/main Sources [3,312 B]
Get:29 http://nyc2.mirrors.digitalocean.com/ubuntu xenial-backports/universe Sources [4,404 B]
Fetched 11.9 MB in 2s (3,964 kB/s)
Reading package lists...

package: action=install name=curl
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y curl
SSH cmd err, output: : Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.47.0-1ubuntu2.2).
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.

Installing Docker...
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
if ! type docker; then curl -sSL https://get.docker.com | sh -; fi
SSH cmd err, output: : docker is /usr/bin/docker

waiting for docker daemon
checking docker daemon
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
sudo docker version
SSH cmd err, output: : Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:23:31 2017
OS/Arch: linux/amd64

Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:19:04 2017
OS/Arch: linux/amd64
Experimental: false

configuring auth
(qa7) Calling .GetMachineName
(qa7) Calling .GetIP
Copying certs to the local machine directory...
generating server cert: /Users/btamm/.docker/machine/machines/qa7/server.pem ca-key=/Users/btamm/.docker/machine/certs/ca.pem private-key=/Users/btamm/.docker/machine/certs/ca-key.pem org=btamm.qa7 san=[IP-ADDRESS-HIDDEN localhost]
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
sudo systemctl -f stop docker
SSH cmd err, output: :
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
if [ ! -z "$(ip link show docker0)" ]; then sudo ip link delete docker0; fi
SSH cmd err, output: :
Copying certs to the remote machine...
(qa7) Calling .GetSSHHostname
(qa7) Calling .GetSSHPort
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHKeyPath
(qa7) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: SSH-KEY-PATH-HIDDEN (-rw-------)
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@IP-ADDRESS-HIDDEN -o IdentitiesOnly=yes -i SSH-KEY-PATH-HIDDEN -p 22] /usr/bin/ssh }
About to run SSH command:
printf '%s' '-----BEGIN CERTIFICATE-----
MIICzTCCAbWgAwIBAgIQPBCIXKvRLl3rMNlTCkrLSTANBgkqhkiG9w0BAQsFADAQ
MQ4wDAYDVQQKEwVidGFtbTAeFw0xNzA3MTQxNTIxMDBaFw0yMDA2MjgxNTIxMDBa
MBAxDjAMBgNVBAoTBWJ0YW1tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
AQEAnXqe7OCQ+6Qgf9lcvZj/JgCMkKllg8Gmkm6wmTBddkbOSiOql5DpxqIwNPv8
rHcs5kTYqLdPiM3cpcTgV4HpkWvhSRGRYJqpctkOTfLKuZTI9xGZ8QtFeZSOGkuk
UAhZZD/y7bNIDPllPhpVxqcUNyZPxn5fzFiamxbN5qF1uFdm4cjsRlxNfpHjbiuB
11BcEcBxKnK+EsRzB6gLNKOwhn7hbpQhieL/ulNwiv9oCAXj1LUg8J21+vQU5jOA
+FX9JimIm1he0jgy/Pl/xLjbOcu5evcKa3bOHPy27a2H+lDUK8bJ4G6vbc4AJVQE
MHHmkbkolkBF3RMlkZ5DUC82awIDAQABoyMwITAOBgNVHQ8BAf8EBAMCAqwwDwYD
VR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAdfQGGnhI3X2mnTfk1CvE
LwgJPL0gDYUbQjMREH0Iqz+eMxkHkWyeDJvUDwvMY+GC8rdOJDRFi371VvKYgZsx
PYdD0+ha/qbFu1YjTzYAW0oosmWybG94ZCO1DGC4JToXlmp1IJbJ1ieknDNgXvjq
9vB+uqNcJoJms5dXRFC0w746uyw/9trZW7VXy3a28doz6dgCKV4kP0VBq1iTGf9x
fs6TyJekzKVztQnRQ+7CnEl67rKDfitDK76cJDb69idJoc5ddxV+QHSFPUWNXBT8
Jy4AuxxhzTEI53wO9krgy7xPdpoEEdJ641OsYjnGaYadaNhhka4pTQlvi4FikSh+
xg==
-----END CERTIFICATE-----
' | sudo tee /etc/docker/ca.pem
SSH cmd err, output: exit status 255:
Error creating machine: Error running provisioning: ssh command error:
command : printf '%s' '-----BEGIN CERTIFICATE-----
MIICzTCCAbWgAwIBAgIQPBCIXKvRLl3rMNlTCkrLSTANBgkqhkiG9w0BAQsFADAQ
MQ4wDAYDVQQKEwVidGFtbTAeFw0xNzA3MTQxNTIxMDBaFw0yMDA2MjgxNTIxMDBa
MBAxDjAMBgNVBAoTBWJ0YW1tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
AQEAnXqe7OCQ+6Qgf9lcvZj/JgCMkKllg8Gmkm6wmTBddkbOSiOql5DpxqIwNPv8
rHcs5kTYqLdPiM3cpcTgV4HpkWvhSRGRYJqpctkOTfLKuZTI9xGZ8QtFeZSOGkuk
UAhZZD/y7bNIDPllPhpVxqcUNyZPxn5fzFiamxbN5qF1uFdm4cjsRlxNfpHjbiuB
11BcEcBxKnK+EsRzB6gLNKOwhn7hbpQhieL/ulNwiv9oCAXj1LUg8J21+vQU5jOA
+FX9JimIm1he0jgy/Pl/xLjbOcu5evcKa3bOHPy27a2H+lDUK8bJ4G6vbc4AJVQE
MHHmkbkolkBF3RMlkZ5DUC82awIDAQABoyMwITAOBgNVHQ8BAf8EBAMCAqwwDwYD
VR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAdfQGGnhI3X2mnTfk1CvE
LwgJPL0gDYUbQjMREH0Iqz+eMxkHkWyeDJvUDwvMY+GC8rdOJDRFi371VvKYgZsx
PYdD0+ha/qbFu1YjTzYAW0oosmWybG94ZCO1DGC4JToXlmp1IJbJ1ieknDNgXvjq
9vB+uqNcJoJms5dXRFC0w746uyw/9trZW7VXy3a28doz6dgCKV4kP0VBq1iTGf9x
fs6TyJekzKVztQnRQ+7CnEl67rKDfitDK76cJDb69idJoc5ddxV+QHSFPUWNXBT8
Jy4AuxxhzTEI53wO9krgy7xPdpoEEdJ641OsYjnGaYadaNhhka4pTQlvi4FikSh+
xg==
-----END CERTIFICATE-----
' | sudo tee /etc/docker/ca.pem
err : exit status 255
output :
notifying bugsnag: [Error creating machine: Error running provisioning: ssh command error:
command : printf '%s' '-----BEGIN CERTIFICATE-----
MIICzTCCAbWgAwIBAgIQPBCIXKvRLl3rMNlTCkrLSTANBgkqhkiG9w0BAQsFADAQ
MQ4wDAYDVQQKEwVidGFtbTAeFw0xNzA3MTQxNTIxMDBaFw0yMDA2MjgxNTIxMDBa
MBAxDjAMBgNVBAoTBWJ0YW1tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
AQEAnXqe7OCQ+6Qgf9lcvZj/JgCMkKllg8Gmkm6wmTBddkbOSiOql5DpxqIwNPv8
rHcs5kTYqLdPiM3cpcTgV4HpkWvhSRGRYJqpctkOTfLKuZTI9xGZ8QtFeZSOGkuk
UAhZZD/y7bNIDPllPhpVxqcUNyZPxn5fzFiamxbN5qF1uFdm4cjsRlxNfpHjbiuB
11BcEcBxKnK+EsRzB6gLNKOwhn7hbpQhieL/ulNwiv9oCAXj1LUg8J21+vQU5jOA
+FX9JimIm1he0jgy/Pl/xLjbOcu5evcKa3bOHPy27a2H+lDUK8bJ4G6vbc4AJVQE
MHHmkbkolkBF3RMlkZ5DUC82awIDAQABoyMwITAOBgNVHQ8BAf8EBAMCAqwwDwYD
VR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAdfQGGnhI3X2mnTfk1CvE
LwgJPL0gDYUbQjMREH0Iqz+eMxkHkWyeDJvUDwvMY+GC8rdOJDRFi371VvKYgZsx
PYdD0+ha/qbFu1YjTzYAW0oosmWybG94ZCO1DGC4JToXlmp1IJbJ1ieknDNgXvjq
9vB+uqNcJoJms5dXRFC0w746uyw/9trZW7VXy3a28doz6dgCKV4kP0VBq1iTGf9x
fs6TyJekzKVztQnRQ+7CnEl67rKDfitDK76cJDb69idJoc5ddxV+QHSFPUWNXBT8
Jy4AuxxhzTEI53wO9krgy7xPdpoEEdJ641OsYjnGaYadaNhhka4pTQlvi4FikSh+
xg==
-----END CERTIFICATE-----
' | sudo tee /etc/docker/ca.pem
err : exit status 255
output : ]

@shin-
Copy link
Contributor

shin- commented Jul 17, 2017

Basic provisioning works fine on DO as far as I can tell:

$ docker-machine create --driver digitalocean --digitalocean-access-token=TOKEN test-do
Running pre-create checks...
Creating machine...
(test-do) Creating SSH key...
(test-do) Creating Digital Ocean droplet...
(test-do) Waiting for IP address to be assigned to the Droplet...
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...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env test-do
$ docker-machine version
docker-machine version 0.12.2, build 9371605
$ eval $(docker-machine env test-do)
$ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 17.06.0-ce
...
Name: test-do
...
Labels:
 provider=digitalocean
...

As far as I can tell, the problem is you're using a DO image that's not compatible with Machine's provisioning.

@twang2218
Copy link
Contributor

@brandontamm Hi, I tried to reproduce your issue today to see what's exactly going wrong. However, I cannot reproduce your case in 0.12.2.

My attempt to reproduce the issue

I installed the docker-machine via brew install docker-machine, and ln it to ~/bin/docker-machine for easy use.

Then, I created a Digital Ocean droplet by specified the image: --digitalocean-image=ubuntu-16-04-x64, here is the output:

ζ ~/bin/docker-machine -D create -d digitalocean --digitalocean-image=ubuntu-16-04-x64 d1
Docker Machine Version:  0.12.2, build 9371605
Found binary path at /Users/taowang/bin/docker-machine
Launching plugin server for driver digitalocean
Plugin server listening at address 127.0.0.1:63437
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /Users/taowang/bin/docker-machine
Launching plugin server for driver digitalocean
Plugin server listening at address 127.0.0.1:63441
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(d1) Calling .GetMachineName
(d1) Calling .DriverName
(d1) Calling .GetCreateFlags
(d1) Calling .SetConfigFromFlags
Running pre-create checks...
(d1) Calling .PreCreateCheck
(d1) Calling .GetConfigRaw
Creating machine...
(d1) Calling .Create
(d1) Creating SSH key...
(d1) Assuming Digital Ocean private SSH is located at ~/.ssh/id_rsa
(d1) Creating Digital Ocean droplet...
(d1) Waiting for IP address to be assigned to the Droplet...
(d1) DBG | Created droplet ID 55410575, IP address 138.197.200.54
(d1) Calling .GetConfigRaw
(d1) Calling .DriverName
(d1) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(d1) Calling .GetState
(d1) Calling .GetState
(d1) Calling .GetState
(d1) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : ssh command error:
command : exit 0
err     : exit status 255
output  :
Getting to WaitForSSH function...
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: <nil>:
Detecting the provisioner...
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: <nil>: NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Couldn't set key VERSION_CODENAME, no corresponding struct field found
Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
found compatible host: ubuntu
Provisioning with ubuntu(systemd)...
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
stat -f -c %T /var/lib
SSH cmd err, output: <nil>: ext2/ext3

No storagedriver specified, using aufs

setting hostname
(d1) Calling .GetMachineName
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo hostname d1 && echo "d1" | sudo tee /etc/hostname
SSH cmd err, output: <nil>: d1

(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:

		if ! grep -xq '.*\sd1' /etc/hosts; then
			if grep -xq '127.0.1.1\s.*' /etc/hosts; then
				sudo sed -i 's/^127.0.1.1\s.*/127.0.1.1 d1/g' /etc/hosts;
			else
				echo '127.0.1.1 d1' | sudo tee -a /etc/hosts;
			fi
		fi
SSH cmd err, output: <nil>:
installing base packages
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo apt-get update
SSH cmd err, output: <nil>: Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://sfo1.mirrors.digitalocean.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security/main Sources [79.5 kB]
Get:4 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates InRelease [102 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,604 B]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [36.6 kB]
Get:7 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-backports InRelease [102 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,144 B]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [304 kB]
Get:10 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/main Sources [868 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [129 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [145 kB]
Get:13 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/restricted Sources [4,808 B]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [74.8 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2,748 B]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,232 B]
Get:17 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/universe Sources [7,728 kB]
Get:18 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/multiverse Sources [179 kB]
Get:19 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:20 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:21 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:22 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:23 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/main Sources [259 kB]
Get:24 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/restricted Sources [3,000 B]
Get:25 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/universe Sources [163 kB]
Get:26 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Sources [6,948 B]
Get:27 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [578 kB]
Get:28 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/main Translation-en [234 kB]
Get:29 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages [504 kB]
Get:30 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/universe Translation-en [196 kB]
Get:31 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse amd64 Packages [14.9 kB]
Get:32 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates/multiverse Translation-en [7,476 B]
Get:33 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-backports/main Sources [3,312 B]
Get:34 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-backports/universe Sources [4,404 B]
Get:35 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-backports/main amd64 Packages [4,680 B]
Get:36 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-backports/main Translation-en [3,216 B]
Get:37 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-backports/universe amd64 Packages [5,804 B]
Get:38 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-backports/universe Translation-en [3,004 B]
Fetched 24.0 MB in 5s (4,466 kB/s)
Reading package lists...

package: action=install name=curl
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y  curl
SSH cmd err, output: <nil>: Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.47.0-1ubuntu2.2).
0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.

Installing Docker...
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
if ! type docker; then curl -sSL https://get.docker.com | sh -; fi
SSH cmd err, output: <nil>: bash: line 0: type: docker: not found
+ sh -c apt-get updateHit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease

Hit:2 http://sfo1.mirrors.digitalocean.com/ubuntu xenial InRelease
Hit:3 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates InRelease
Hit:4 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-backports InRelease
Reading package lists...
Reading package lists...
+ sh -c apt-get install -y -q apt-transport-https ca-certificates curl software-properties-common
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20160104ubuntu1).
apt-transport-https is already the newest version (1.2.20).
curl is already the newest version (7.47.0-1ubuntu2.2).
software-properties-common is already the newest version (0.96.20.7).
0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
+ sh -c apt-key add -
+ curl -fsSl https://download.docker.com/linux/ubuntu/gpg
OK
+ sh -c add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial edge"
+ [ ubuntu = debian ]
+ sh -c apt-get update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://sfo1.mirrors.digitalocean.com/ubuntu xenial InRelease
Hit:3 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-updates InRelease
Get:4 https://download.docker.com/linux/ubuntu xenial InRelease [29.5 kB]
Hit:5 http://sfo1.mirrors.digitalocean.com/ubuntu xenial-backports InRelease
Get:6 https://download.docker.com/linux/ubuntu xenial/edge amd64 Packages [1,766 B]
Fetched 31.3 kB in 0s (60.1 kB/s)
Reading package lists...
Reading package lists...
+ sh -c apt-get install -y -q docker-ce
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  aufs-tools cgroupfs-mount libltdl7
Suggested packages:
  mountall
The following NEW packages will be installed:
  aufs-tools cgroupfs-mount docker-ce libltdl7
0 upgraded, 4 newly installed, 0 to remove and 46 not upgraded.
Need to get 20.6 MB of archives.
After this operation, 96.6 MB of additional disk space will be used.
Get:1 https://download.docker.com/linux/ubuntu xenial/edge amd64 docker-ce amd64 17.06.0~ce-0~ubuntu [20.5 MB]
Get:2 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/universe amd64 aufs-tools amd64 1:3.2+20130722-1.1ubuntu1 [92.9 kB]
Get:3 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/universe amd64 cgroupfs-mount all 1.2 [4,970 B]
Get:4 http://sfo1.mirrors.digitalocean.com/ubuntu xenial/main amd64 libltdl7 amd64 2.4.6-0.1 [38.3 kB]
Fetched 20.6 MB in 0s (30.9 MB/s)
Selecting previously unselected package aufs-tools.
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
(Reading database ... 53887 files and directories currently installed.)
Preparing to unpack .../aufs-tools_1%3a3.2+20130722-1.1ubuntu1_amd64.deb ...
Unpacking aufs-tools (1:3.2+20130722-1.1ubuntu1) ...
Selecting previously unselected package cgroupfs-mount.
Preparing to unpack .../cgroupfs-mount_1.2_all.deb ...
Unpacking cgroupfs-mount (1.2) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../libltdl7_2.4.6-0.1_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-0.1) ...
Selecting previously unselected package docker-ce.
Preparing to unpack .../docker-ce_17.06.0~ce-0~ubuntu_amd64.deb ...
Unpacking docker-ce (17.06.0~ce-0~ubuntu) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu17) ...
Setting up aufs-tools (1:3.2+20130722-1.1ubuntu1) ...
Setting up cgroupfs-mount (1.2) ...
Setting up libltdl7:amd64 (2.4.6-0.1) ...
Setting up docker-ce (17.06.0~ce-0~ubuntu) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
+ sh -c docker versionClient:
 Version:
17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:23:31 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.06.0-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:19:04 2017
 OS/Arch:      linux/amd64
 Experimental: false

If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

  sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

WARNING: Adding a user to the "docker" group will grant the ability to run
         containers which can be used to obtain root privileges on the
         docker host.
         Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
         for more information.


waiting for docker daemon
checking docker daemon
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo docker version
SSH cmd err, output: <nil>: Client:
 Version:      17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:23:31 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.06.0-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:19:04 2017
 OS/Arch:      linux/amd64
 Experimental: false

configuring auth
(d1) Calling .GetMachineName
(d1) Calling .GetIP
Copying certs to the local machine directory...
generating server cert: /Users/taowang/.docker/machine/machines/d1/server.pem ca-key=/Users/taowang/.docker/machine/certs/ca.pem private-key=/Users/taowang/.docker/machine/certs/ca-key.pem org=taowang.d1 san=[138.197.200.54 localhost]
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo systemctl -f stop docker
SSH cmd err, output: <nil>:
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
if [ ! -z "$(ip link show docker0)" ]; then sudo ip link delete docker0; fi
SSH cmd err, output: <nil>:
Copying certs to the remote machine...
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
printf '%s' '-----BEGIN CERTIFICATE-----
MIIC0jCCAbqgAwIBAgIRAKLT9Lf8DoWWAF8o6lE9sq4wDQYJKoZIhvcNAQELBQAw
EjEQMA4GA1UEChMHdGFvd2FuZzAeFw0xNTExMTAxNTUzMDBaFw0xODEwMjUxNTUz
MDBaMBIxEDAOBgNVBAoTB3Rhb3dhbmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQC9qdIl6TwGjKyz40WqCL1yLNRQKnzOI6CeiGVheTG06Yj8AFE3q6Ht
6GjyeLETweZdhO6xekLEVh7m8QozrEbhpT4jk4MIxbfqKlSNxG0yQYMLMV4FfPpV
oHO9u1pk+viAF7TeageVJx+yhZ3xCvnoKD4UZU4IKpLBBE23WJKDVkypPHuPSdGd
cbh0HNGbgAfFObd8/zw4cIpOlXZp0uzC5AKE2mSgI9f3emgAM4aAYAbiphY5qPo+
EAGIlArEmvOxjxXMjlJv+r6M2BEVw36Uev8u7MgYdJBMF6xa3UubqiPu7FJSyu6k
hlK0rNofnS6tTd3xwbmi6AmlDnXbFjupAgMBAAGjIzAhMA4GA1UdDwEB/wQEAwIC
rDAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQC8yiIoYbwNbxhN
sOkLzchPs/j1VnbdGsV7fp2iGSSH3eXFpzjFiy8uuEKWWUbAhdv+6K7q0wTf9IM8
5oTGVZhjSmwZ8apRu/Ez72zzHEEMXG75faXCIo9SBr8cui+ybNNa6Ku0f2/BQiH6
NlD5A/ukTuKFJbwSXOCh8pe4ilsTGjvg8+vkx3C7hgA+TYIZ/j62nCj70cEnf4g1
R1ZoRmdzEe/+o3odgBsXJS/wW40wPU2Y47XrfyXwlcGc68OlFkqZCrf8ZA8/Ptmp
z8UQRc14M2G+i3t+wFw5p2L6rtL0o+uOoUSydlYkqCGR3r7u3l9e+Qwr8nv0P++T
JL2krU/d
-----END CERTIFICATE-----
' | sudo tee /etc/docker/ca.pem
SSH cmd err, output: <nil>: -----BEGIN CERTIFICATE-----
MIIC0jCCAbqgAwIBAgIRAKLT9Lf8DoWWAF8o6lE9sq4wDQYJKoZIhvcNAQELBQAw
EjEQMA4GA1UEChMHdGFvd2FuZzAeFw0xNTExMTAxNTUzMDBaFw0xODEwMjUxNTUz
MDBaMBIxEDAOBgNVBAoTB3Rhb3dhbmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQC9qdIl6TwGjKyz40WqCL1yLNRQKnzOI6CeiGVheTG06Yj8AFE3q6Ht
6GjyeLETweZdhO6xekLEVh7m8QozrEbhpT4jk4MIxbfqKlSNxG0yQYMLMV4FfPpV
oHO9u1pk+viAF7TeageVJx+yhZ3xCvnoKD4UZU4IKpLBBE23WJKDVkypPHuPSdGd
cbh0HNGbgAfFObd8/zw4cIpOlXZp0uzC5AKE2mSgI9f3emgAM4aAYAbiphY5qPo+
EAGIlArEmvOxjxXMjlJv+r6M2BEVw36Uev8u7MgYdJBMF6xa3UubqiPu7FJSyu6k
hlK0rNofnS6tTd3xwbmi6AmlDnXbFjupAgMBAAGjIzAhMA4GA1UdDwEB/wQEAwIC
rDAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQC8yiIoYbwNbxhN
sOkLzchPs/j1VnbdGsV7fp2iGSSH3eXFpzjFiy8uuEKWWUbAhdv+6K7q0wTf9IM8
5oTGVZhjSmwZ8apRu/Ez72zzHEEMXG75faXCIo9SBr8cui+ybNNa6Ku0f2/BQiH6
NlD5A/ukTuKFJbwSXOCh8pe4ilsTGjvg8+vkx3C7hgA+TYIZ/j62nCj70cEnf4g1
R1ZoRmdzEe/+o3odgBsXJS/wW40wPU2Y47XrfyXwlcGc68OlFkqZCrf8ZA8/Ptmp
z8UQRc14M2G+i3t+wFw5p2L6rtL0o+uOoUSydlYkqCGR3r7u3l9e+Qwr8nv0P++T
JL2krU/d
-----END CERTIFICATE-----

(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
printf '%s' '-----BEGIN CERTIFICATE-----
MIIDAzCCAeugAwIBAgIRALkrAqxEek7vvLpx43BZRtQwDQYJKoZIhvcNAQELBQAw
EjEQMA4GA1UEChMHdGFvd2FuZzAeFw0xNzA3MTgwODQwMDBaFw0yMDA3MDIwODQw
MDBaMBUxEzARBgNVBAoTCnRhb3dhbmcuZDEwggEiMA0GCSqGSIb3DQEBAQUAA4IB
DwAwggEKAoIBAQC8XZJpydOV34Hh/T6ChLgwx1TFMrJk/tXNBJnYhIP02hGXtNMI
VDfvbpNw3KXxzR+BLDBz7ZrULLXBMtfEJ0mRQi4VrZIMN7kOvlBwkzZKU7fZLxf6
2lWPdcpsbH5EfnGAvN+Mx6ilN/aWXi5wG4gTQoRksyv3zE67HR7xGpNKH5u4ooXY
VUKglj4q1xsc1HHydNy4Xu7ypnyfdNLT6954gOLSLap3Jpj06eMJUnsT0kH9dJUg
CgqgPF2trdr4o56w5wGGnWREsywVniuCo8YIQxPEaSErW+CmpInUqnSAtgshNM0A
fFt7r6YxNMi9bF0Lu2IPGANHKpAi8IrmmfebAgMBAAGjUTBPMA4GA1UdDwEB/wQE
AwIDqDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMBoGA1UdEQQT
MBGCCWxvY2FsaG9zdIcEisXINjANBgkqhkiG9w0BAQsFAAOCAQEAAxjtdoOUWo91
pow6Ln9AsVKyPg1sf1WxaPq5gcdlCVQTWD23Ajrxhw+yO+TS6HoHR19mpKPVBL9m
HKklM6wqUR1lDDNjSBbs0BgkiS3SWQogINU8/wrG5gMMQ3gzVg/GJFlJTzW+WZsJ
Z8Kml4lzwaz4HwtecS8T9RtsiiBDjj0fMpnL1tlchEXYVKum/0T5wQawjnsK2/bb
XHrRJ33jsbXsolFYiJrHp09No9pW9W6gkg7uUk9qqlMBW0wpN+aWCvapktZmsiiv
Z99e+CqoK8Pz7To5zYjEsC7p+P7Re9qWBvUiKhAEagukcDyAMwCyZ3RfZNaTHgwn
FyEsmq8NrA==
-----END CERTIFICATE-----
' | sudo tee /etc/docker/server.pem
SSH cmd err, output: <nil>: -----BEGIN CERTIFICATE-----
MIIDAzCCAeugAwIBAgIRALkrAqxEek7vvLpx43BZRtQwDQYJKoZIhvcNAQELBQAw
EjEQMA4GA1UEChMHdGFvd2FuZzAeFw0xNzA3MTgwODQwMDBaFw0yMDA3MDIwODQw
MDBaMBUxEzARBgNVBAoTCnRhb3dhbmcuZDEwggEiMA0GCSqGSIb3DQEBAQUAA4IB
DwAwggEKAoIBAQC8XZJpydOV34Hh/T6ChLgwx1TFMrJk/tXNBJnYhIP02hGXtNMI
VDfvbpNw3KXxzR+BLDBz7ZrULLXBMtfEJ0mRQi4VrZIMN7kOvlBwkzZKU7fZLxf6
2lWPdcpsbH5EfnGAvN+Mx6ilN/aWXi5wG4gTQoRksyv3zE67HR7xGpNKH5u4ooXY
VUKglj4q1xsc1HHydNy4Xu7ypnyfdNLT6954gOLSLap3Jpj06eMJUnsT0kH9dJUg
CgqgPF2trdr4o56w5wGGnWREsywVniuCo8YIQxPEaSErW+CmpInUqnSAtgshNM0A
fFt7r6YxNMi9bF0Lu2IPGANHKpAi8IrmmfebAgMBAAGjUTBPMA4GA1UdDwEB/wQE
AwIDqDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMBoGA1UdEQQT
MBGCCWxvY2FsaG9zdIcEisXINjANBgkqhkiG9w0BAQsFAAOCAQEAAxjtdoOUWo91
pow6Ln9AsVKyPg1sf1WxaPq5gcdlCVQTWD23Ajrxhw+yO+TS6HoHR19mpKPVBL9m
HKklM6wqUR1lDDNjSBbs0BgkiS3SWQogINU8/wrG5gMMQ3gzVg/GJFlJTzW+WZsJ
Z8Kml4lzwaz4HwtecS8T9RtsiiBDjj0fMpnL1tlchEXYVKum/0T5wQawjnsK2/bb
XHrRJ33jsbXsolFYiJrHp09No9pW9W6gkg7uUk9qqlMBW0wpN+aWCvapktZmsiiv
Z99e+CqoK8Pz7To5zYjEsC7p+P7Re9qWBvUiKhAEagukcDyAMwCyZ3RfZNaTHgwn
FyEsmq8NrA==
-----END CERTIFICATE-----

(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
printf '%s' '-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAvF2SacnTld+B4f0+goS4MMdUxTKyZP7VzQSZ2ISD9NoRl7TT
CFQ3726TcNyl8c0fgSwwc+2a1Cy1wTLXxCdJkUIuFa2SDDe5Dr5QcJM2SlO32S8X
+tpVj3XKbGx+RH5xgLzfjMeopTf2ll4ucBuIE0KEZLMr98xOux0e8RqTSh+buKKF
2FVCoJY+KtcbHNRx8nTcuF7u8qZ8n3TS0+veeIDi0i2qdyaY9OnjCVJ7E9JB/XSV
IAoKoDxdra3a+KOesOcBhp1kRLMsFZ4rgqPGCEMTxGkhK1vgpqSJ1Kp0gLYLITTN
AHxbe6+mMTTIvWxdC7tiDxgDRyqQIvCK5pn3mwIDAQABAoIBAQCq5iqkmFzDqZlp
tB42xLtoZjFfCPQZ9at86yO58eDXEdLMVV7yO5bUQPq8dzSIAZcH11POmlDTGA1/
T+W7LfntNKIjQOs08omP+tN4j9e9797pyXR0QAtIsZIKdRTKh/3q03HvhGZaIEA1
hRWU2SXIc50yz+ygUllMIsuj7HydzikuAjVzM9HrGfJmtLFmZLCMpS5UILEU6Nlo
ADPxNf+5MqPX0xW021Kdo7LNIEUudUnuhBLUofZyWnbaj0R6wkQnELD+VzaypO6H
6Cob7ojnPtmz8r+eWIOMJbT3be50wNjyaZSdEGXzxYPbmKAqynrlcfgBLUuZgwVo
PFcCpt2BAoGBAN+KwUQb5qxnAWVO3nQ1sAThDMWUx53hIL0ldYaOu1vmlIwxPMXU
gNJfLe44bLWFXah0HFMbRc0D/HQDC9xKjLz/GSjS1Qym6JpzruIHMvS0olUIWSGQ
9l1CAkFFdzA6LQynwVI+CfXrLboku/xWWkICbevUsJ7TcrCweEeAJi7xAoGBANe3
Rua/eYjzoKwC4QGUMZrsbJtcfuQicWqaw13mL7sliX+xFRG4zrJYZd0DGkmvwGP+
xUhNLiQAGNB76yOuP/FX4ttOkerWG5MTWFAyvss0j6POG920x5Cz3YnTF8FuVl9M
O7y5b4H6wA8157T70e4xAxNCSSo/eUJwwd81e6dLAoGAcDPWRBh5FSnyomYO9GeK
PTi0z2uZMl6wrx/hOLPlyQAYqbGBHo9GRdGuXTcHIamaVBZLrU8wHvKUQarRxjXJ
JIgqmboRY/NXJ0dPjXYtlnQgUuwIyPdZIYAjX529cICS4hpFx8EKANyVrCwKC2NQ
lHdhsxCjwmTB2XwKM2FYSRECgYEA1wV7iRqnXJnsOEmOW3KKl7C++YYTfffPMcIe
p4SBY3yhOEUdiVK7xg5TSyCCnZywm3wizlUQfxYRpg8/bYuNdVZzbMM+s+TEC7Cm
wRo0EH3OCCu0nyRKILUJSQ6/iTIgqlFk4lO9EMUPmJnU4xR4R4NXW2UhZRlsF4wp
1AKNxU0CgYEAkJNvKYrRiCZHiaEm08IMvIwXty0OVnVF/yYvkJ3p12F4PpRqNgJr
AClHFZjOejnUVVeNUrQfIJlCC6yKp5O1tVrB7GajtEl5TwMkJ4H4AfH5BBqaswRZ
DxaCbvmrXxN+gjCajWRDAYkcBoxEvK1s4LcGL/XAZ+XYQtYjSt6iLrk=
-----END RSA PRIVATE KEY-----
' | sudo tee /etc/docker/server-key.pem
SSH cmd err, output: <nil>: -----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAvF2SacnTld+B4f0+goS4MMdUxTKyZP7VzQSZ2ISD9NoRl7TT
CFQ3726TcNyl8c0fgSwwc+2a1Cy1wTLXxCdJkUIuFa2SDDe5Dr5QcJM2SlO32S8X
+tpVj3XKbGx+RH5xgLzfjMeopTf2ll4ucBuIE0KEZLMr98xOux0e8RqTSh+buKKF
2FVCoJY+KtcbHNRx8nTcuF7u8qZ8n3TS0+veeIDi0i2qdyaY9OnjCVJ7E9JB/XSV
IAoKoDxdra3a+KOesOcBhp1kRLMsFZ4rgqPGCEMTxGkhK1vgpqSJ1Kp0gLYLITTN
AHxbe6+mMTTIvWxdC7tiDxgDRyqQIvCK5pn3mwIDAQABAoIBAQCq5iqkmFzDqZlp
tB42xLtoZjFfCPQZ9at86yO58eDXEdLMVV7yO5bUQPq8dzSIAZcH11POmlDTGA1/
T+W7LfntNKIjQOs08omP+tN4j9e9797pyXR0QAtIsZIKdRTKh/3q03HvhGZaIEA1
hRWU2SXIc50yz+ygUllMIsuj7HydzikuAjVzM9HrGfJmtLFmZLCMpS5UILEU6Nlo
ADPxNf+5MqPX0xW021Kdo7LNIEUudUnuhBLUofZyWnbaj0R6wkQnELD+VzaypO6H
6Cob7ojnPtmz8r+eWIOMJbT3be50wNjyaZSdEGXzxYPbmKAqynrlcfgBLUuZgwVo
PFcCpt2BAoGBAN+KwUQb5qxnAWVO3nQ1sAThDMWUx53hIL0ldYaOu1vmlIwxPMXU
gNJfLe44bLWFXah0HFMbRc0D/HQDC9xKjLz/GSjS1Qym6JpzruIHMvS0olUIWSGQ
9l1CAkFFdzA6LQynwVI+CfXrLboku/xWWkICbevUsJ7TcrCweEeAJi7xAoGBANe3
Rua/eYjzoKwC4QGUMZrsbJtcfuQicWqaw13mL7sliX+xFRG4zrJYZd0DGkmvwGP+
xUhNLiQAGNB76yOuP/FX4ttOkerWG5MTWFAyvss0j6POG920x5Cz3YnTF8FuVl9M
O7y5b4H6wA8157T70e4xAxNCSSo/eUJwwd81e6dLAoGAcDPWRBh5FSnyomYO9GeK
PTi0z2uZMl6wrx/hOLPlyQAYqbGBHo9GRdGuXTcHIamaVBZLrU8wHvKUQarRxjXJ
JIgqmboRY/NXJ0dPjXYtlnQgUuwIyPdZIYAjX529cICS4hpFx8EKANyVrCwKC2NQ
lHdhsxCjwmTB2XwKM2FYSRECgYEA1wV7iRqnXJnsOEmOW3KKl7C++YYTfffPMcIe
p4SBY3yhOEUdiVK7xg5TSyCCnZywm3wizlUQfxYRpg8/bYuNdVZzbMM+s+TEC7Cm
wRo0EH3OCCu0nyRKILUJSQ6/iTIgqlFk4lO9EMUPmJnU4xR4R4NXW2UhZRlsF4wp
1AKNxU0CgYEAkJNvKYrRiCZHiaEm08IMvIwXty0OVnVF/yYvkJ3p12F4PpRqNgJr
AClHFZjOejnUVVeNUrQfIJlCC6yKp5O1tVrB7GajtEl5TwMkJ4H4AfH5BBqaswRZ
DxaCbvmrXxN+gjCajWRDAYkcBoxEvK1s4LcGL/XAZ+XYQtYjSt6iLrk=
-----END RSA PRIVATE KEY-----

(d1) Calling .GetURL
(d1) Calling .DriverName
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
docker --version
SSH cmd err, output: <nil>: Docker version 17.06.0-ce, build 02c1d87

Setting Docker configuration on the remote daemon...
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo mkdir -p /etc/systemd/system/docker.service.d && printf %s "[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=digitalocean
Environment=
" | sudo tee /etc/systemd/system/docker.service.d/10-machine.conf
SSH cmd err, output: <nil>: [Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --storage-driver aufs --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=digitalocean
Environment=

(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo systemctl daemon-reload
SSH cmd err, output: <nil>:
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo systemctl -f start docker
SSH cmd err, output: <nil>:
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
netstat -tln
SSH cmd err, output: <nil>: Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp6       0      0 :::2376                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN

configuring swarm
enabling docker in systemd
(d1) Calling .GetSSHHostname
(d1) Calling .GetSSHPort
(d1) Calling .GetSSHKeyPath
(d1) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none root@138.197.200.54 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo systemctl -f enable docker
SSH cmd err, output: <nil>: Synchronizing state of docker.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable docker

Checking connection to Docker...
(d1) Calling .GetURL
Reading CA certificate from /Users/taowang/.docker/machine/certs/ca.pem
Reading client certificate from /Users/taowang/.docker/machine/certs/cert.pem
Reading client key from /Users/taowang/.docker/machine/certs/key.pem
Docker is up and running!
Reticulating splines...
(d1) Calling .GetConfigRaw
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: /Users/taowang/bin/docker-machine env d1
Making call to close driver server
(d1) Calling .Close
Successfully made call to close driver server
Making call to close connection to plugin binary
(d1) DBG | Closing plugin on server side
Making call to close driver server
(flag-lookup) Calling .Close
Successfully made call to close driver server
Making call to close connection to plugin binary

The droplet has been created smoothly. Here is the docker info of the instance:

ζ eval $(~/bin/docker-machine env d1)
ζ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 17.06.0-ce
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfb82a876ecc11b5ca0977d1733adbe58599088a
runc version: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4
init version: 949e6fa
Security Options:
 apparmor
 seccomp
Kernel Version: 4.4.0-81-generic
Operating System: Ubuntu 16.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 488.3MiB
Name: d1
ID: Z4RD:4OZW:DPYM:BNJ7:K5C5:GU76:CWEJ:SYPR:ODOK:7OD5:ZBDV:52GJ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
 provider=digitalocean
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

The errors you received

Then, I went through your previous post, I found the errors you received were not same.

The first error

at #4189 (comment)

About to run SSH command:printf '%s' '-----BEGIN CERTIFICATE-----CERTIFICATE-KEY-REMOVED-FOR-OBVIOUS-REASONS*-----END CERTIFICATE-----' \
| sudo tee /etc/docker/ca.pemSSH cmd err, output: exit status 255:Error creating machine: Error running provisioning: ssh command error:command : printf '%s' '-----BEGIN CERTIFICATE-----CERTIFICATE-KEY-REMOVED-FOR-OBVIOUS-REASONS*-----END CERTIFICATE-----' \
| sudo tee /etc/docker/ca.pemerr : exit status 255
output :notifying bugsnag: [Error creating machine: Error running provisioning: ssh command error:command : printf '%s' '-----BEGIN CERTIFICATE-----CERTIFICATE-KEY-REMOVED-FOR-OBVIOUS-REASONS*-----END CERTIFICATE-----' \
| sudo tee /etc/docker/ca.pemerr : exit status 255output : ]

This error happened during | sudo tee /etc/docker/ca.pem.

The second error

at #4189 (comment)

Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f stop docker
err : exit status 255
output :
  • sudo systemctl -f stop docker

The 3rd error

at #4189 (comment)

(qa3) Waiting for IP address to be assigned to the Droplet...
Error creating machine: Error in driver during machine creation: invalid character 'L' looking for beginning of value

The 4th error

v0.12.2:
at #4189 (comment)

Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f stop docker
err : exit status 255
output :
  • sudo systemctl -f stop docker

The 5th error

"NOT" using the --engine-storage-driver
at #4189 (comment)

About to run SSH command:
if ! type docker; then curl -sSL https://get.docker.com \| sh -; fi
SSH cmd err, output: exit status 255:
Error creating machine: Error running provisioning: error installing docker:
notifying bugsnag: [Error creating machine: Error running provisioning: error installing docker: ]
  • curl -sSL https://get.docker.com | sh -

The 6th error

"USING" the --engine-storage-driver flag
at #4189 (comment)

' \| sudo tee /etc/docker/ca.pem
SSH cmd err, output: exit status 255:
Error creating machine: Error running provisioning: ssh command error:
command : printf '%s' '-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----' \
| sudo tee /etc/docker/ca.pem
err : exit status 255
output :
notifying bugsnag: [Error creating machine: Error running provisioning: 
ssh command error:
command : printf '%s' '-----BEGIN CERTIFICATE-----...----END CERTIFICATE-----' \
| sudo tee /etc/docker/ca.pem
err : exit status 255
output : 
]
  • | sudo tee /etc/docker/ca.pem

As far as I can tell, I didn't see any clear consistent pattern here.

Your error were more likely happened during some commands need longer time to run(such as accessing get.docker.com), or have more network traffic, such as send certificate through the ssh channel.

This make me wondering, is it possible that you network connection have some kind of problem? I have similar problems when using SSH access server outside GFW sometimes.

@brandontamm
Copy link
Author

@twang2218 & @shin - I think I'm experiencing two weird scenarios (none of which require this ticket to be open any longer:)

  1. Using Digitalocean's image docker-16-04 as an image seems to always result in errors - is this image incompatible with docker-machine as Shin suggested? Is it possible DO is pre-installing docker on the image and then the provisioner is trying to reinstall or update at the same time and it's breaking?
  2. Connection Issues @twang2218 - Of course I get the runaround when I inquire about network connection issues but this is definitely a possibility. I am now seeing successful attempts when re-running the same docker-machine create commands using v0.12.2

Thank you guys for your help.

@shin-
Copy link
Contributor

shin- commented Jul 18, 2017

Yes, if Docker is preinstalled on the image, that would most likely cause issues.

@agners
Copy link

agners commented Feb 17, 2019

I suffered a very similar issue, and it turned out that Digital Ocean's Ubuntu image has rate limiting enabled on port 22 using ufw. Adding a rule like this helped to resolve the issue:

sudo ufw insert 1 allow proto tcp from x.x.x.x/32 to any port 22

@mtree
Copy link

mtree commented Mar 14, 2020

I suffered a very similar issue, and it turned out that Digital Ocean's Ubuntu image has rate limiting enabled on port 22 using ufw. Adding a rule like this helped to resolve the issue:

sudo ufw insert 1 allow proto tcp from x.x.x.x/32 to any port 22

this was solution to my problem, thank you very much!

@mfgredo
Copy link

mfgredo commented Jul 15, 2020

I suffered a very similar issue, and it turned out that Digital Ocean's Ubuntu image has rate limiting enabled on port 22 using ufw. Adding a rule like this helped to resolve the issue:

sudo ufw insert 1 allow proto tcp from x.x.x.x/32 to any port 22

This also solved the problem i had while trying to add docker-machine to an existing DigitalOcean's droplet. Thanks you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants