docker / machine

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

Can't use create a machine with generic driver, while script provision goes fine #4214

Open mvasin opened 7 years ago

mvasin commented 7 years ago

I manually fire up ubuntu 16.04 instance on https://vscale.io/en/, and if I ssh into the machine and run wget -O - https://get.docker.com | bash, docker runs perfectly fine (docker run hello-world works).

But if instead, on equally brand-new instance I run

docker-machine --debug create --driver generic --generic-ip-address 78.155.218.25 --engine-install-url "https://get.docker.com" vscale

i get

Docker Machine Version:  0.12.0, build 45c69ad
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:57269
() 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 generic
Plugin server listening at address 127.0.0.1:57273
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(vscale) Calling .GetMachineName
(vscale) Calling .DriverName
(vscale) Calling .GetCreateFlags
(vscale) Calling .SetConfigFromFlags
Running pre-create checks...
(vscale) Calling .PreCreateCheck
(vscale) Calling .GetConfigRaw
Creating machine...
(vscale) Calling .Create
(vscale) DBG | IP: 78.155.218.25
(vscale) No SSH key specified. Assuming an existing key at the default location.
(vscale) Calling .GetConfigRaw
(vscale) Calling .DriverName
(vscale) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(vscale) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: <nil>:
Detecting the provisioner...
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -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)...
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -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
(vscale) Calling .GetMachineName
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo hostname vscale && echo "vscale" | sudo tee /etc/hostname
SSH cmd err, output: <nil>: sudo: unable to resolve host vscale
vscale

(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:

        if ! grep -xq '.*\svscale' /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 vscale/g' /etc/hosts;
            else
                echo '127.0.1.1 vscale' | sudo tee -a /etc/hosts;
            fi
        fi
SSH cmd err, output: <nil>: sudo: unable to resolve host vscale
127.0.1.1 vscale

installing base packages
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo apt-get update
SSH cmd err, output: <nil>: Ign:1 http://mirror.selectel.ru/ubuntu xenial InRelease
Get:2 http://repo.vscale.io xenial InRelease [4,087 B]
Ign:3 http://mirror.selectel.ru/ubuntu xenial-updates InRelease
Ign:4 http://mirror.selectel.ru/ubuntu xenial-backports InRelease
Get:5 http://mirror.selectel.ru/ubuntu xenial Release [246 kB]
Get:6 http://mirror.selectel.ru/ubuntu xenial-updates Release [101 kB]
Get:7 http://mirror.selectel.ru/ubuntu xenial-backports Release [101 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:9 http://repo.vscale.io xenial/main amd64 Packages [4,218 B]
Get:10 http://mirror.selectel.ru/ubuntu xenial Release.gpg [933 B]
Get:11 http://mirror.selectel.ru/ubuntu xenial-updates Release.gpg [933 B]
Get:12 http://repo.vscale.io xenial/main i386 Packages [4,197 B]
Get:13 http://repo.vscale.io xenial/main all Packages [3,567 B]
Get:14 http://mirror.selectel.ru/ubuntu xenial-backports Release.gpg [933 B]
Ign:15 http://mirror.selectel.ru/ubuntu xenial/main amd64 Packages
Ign:16 http://mirror.selectel.ru/ubuntu xenial/main i386 Packages
Ign:17 http://mirror.selectel.ru/ubuntu xenial/main Translation-en
Ign:18 http://mirror.selectel.ru/ubuntu xenial/restricted amd64 Packages
Ign:19 http://mirror.selectel.ru/ubuntu xenial/restricted i386 Packages
Ign:20 http://mirror.selectel.ru/ubuntu xenial/restricted Translation-en
Ign:21 http://mirror.selectel.ru/ubuntu xenial/universe amd64 Packages
Ign:22 http://mirror.selectel.ru/ubuntu xenial/universe i386 Packages
Ign:23 http://mirror.selectel.ru/ubuntu xenial/universe Translation-en
Ign:24 http://mirror.selectel.ru/ubuntu xenial/multiverse amd64 Packages
Ign:25 http://mirror.selectel.ru/ubuntu xenial/multiverse i386 Packages
Ign:26 http://mirror.selectel.ru/ubuntu xenial/multiverse Translation-en
Get:15 http://mirror.selectel.ru/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:16 http://mirror.selectel.ru/ubuntu xenial/main i386 Packages [1,196 kB]
Get:17 http://mirror.selectel.ru/ubuntu xenial/main Translation-en [568 kB]
Get:18 http://mirror.selectel.ru/ubuntu xenial/restricted amd64 Packages [8,344 B]
Get:19 http://mirror.selectel.ru/ubuntu xenial/restricted i386 Packages [8,684 B]
Get:20 http://mirror.selectel.ru/ubuntu xenial/restricted Translation-en [2,908 B]
Get:21 http://mirror.selectel.ru/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:22 http://mirror.selectel.ru/ubuntu xenial/universe i386 Packages [7,512 kB]
Get:23 http://mirror.selectel.ru/ubuntu xenial/universe Translation-en [4,354 kB]
Get:27 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [316 kB]
Get:24 http://mirror.selectel.ru/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:25 http://mirror.selectel.ru/ubuntu xenial/multiverse i386 Packages [140 kB]
Get:26 http://mirror.selectel.ru/ubuntu xenial/multiverse Translation-en [106 kB]
Ign:28 http://mirror.selectel.ru/ubuntu xenial-updates/main amd64 Packages
Ign:29 http://mirror.selectel.ru/ubuntu xenial-updates/main i386 Packages
Ign:30 http://mirror.selectel.ru/ubuntu xenial-updates/main Translation-en
Ign:31 http://mirror.selectel.ru/ubuntu xenial-updates/restricted amd64 Packages
Ign:32 http://mirror.selectel.ru/ubuntu xenial-updates/restricted i386 Packages
Ign:33 http://mirror.selectel.ru/ubuntu xenial-updates/restricted Translation-en
Ign:34 http://mirror.selectel.ru/ubuntu xenial-updates/universe amd64 Packages
Ign:35 http://mirror.selectel.ru/ubuntu xenial-updates/universe i386 Packages
Ign:36 http://mirror.selectel.ru/ubuntu xenial-updates/universe Translation-en
Ign:37 http://mirror.selectel.ru/ubuntu xenial-updates/multiverse amd64 Packages
Ign:38 http://mirror.selectel.ru/ubuntu xenial-updates/multiverse i386 Packages
Ign:39 http://mirror.selectel.ru/ubuntu xenial-updates/multiverse Translation-en
Ign:40 http://mirror.selectel.ru/ubuntu xenial-backports/main amd64 Packages
Get:41 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [298 kB]
Ign:42 http://mirror.selectel.ru/ubuntu xenial-backports/main i386 Packages
Ign:43 http://mirror.selectel.ru/ubuntu xenial-backports/main Translation-en
Ign:44 http://mirror.selectel.ru/ubuntu xenial-backports/universe amd64 Packages
Ign:45 http://mirror.selectel.ru/ubuntu xenial-backports/universe i386 Packages
Ign:46 http://mirror.selectel.ru/ubuntu xenial-backports/universe Translation-en
Get:28 http://mirror.selectel.ru/ubuntu xenial-updates/main amd64 Packages [593 kB]
Get:47 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [133 kB]
Get:29 http://mirror.selectel.ru/ubuntu xenial-updates/main i386 Packages [572 kB]
Get:30 http://mirror.selectel.ru/ubuntu xenial-updates/main Translation-en [239 kB]
Get:48 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7,420 B]
Get:49 http://security.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [7,420 B]
Get:50 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2,428 B]
Get:51 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [149 kB]
Get:31 http://mirror.selectel.ru/ubuntu xenial-updates/restricted amd64 Packages [7,804 B]
Get:32 http://mirror.selectel.ru/ubuntu xenial-updates/restricted i386 Packages [7,804 B]
Get:52 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [133 kB]
Get:33 http://mirror.selectel.ru/ubuntu xenial-updates/restricted Translation-en [2,548 B]
Get:34 http://mirror.selectel.ru/ubuntu xenial-updates/universe amd64 Packages [510 kB]
Get:53 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [77.0 kB]
Get:54 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2,748 B]
Get:55 http://security.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [2,908 B]
Get:56 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,232 B]
Get:35 http://mirror.selectel.ru/ubuntu xenial-updates/universe i386 Packages [493 kB]
Get:36 http://mirror.selectel.ru/ubuntu xenial-updates/universe Translation-en [198 kB]
Get:37 http://mirror.selectel.ru/ubuntu xenial-updates/multiverse amd64 Packages [15.5 kB]
Get:38 http://mirror.selectel.ru/ubuntu xenial-updates/multiverse i386 Packages [14.6 kB]
Get:39 http://mirror.selectel.ru/ubuntu xenial-updates/multiverse Translation-en [7,540 B]
Get:40 http://mirror.selectel.ru/ubuntu xenial-backports/main amd64 Packages [4,680 B]
Get:42 http://mirror.selectel.ru/ubuntu xenial-backports/main i386 Packages [4,688 B]
Get:43 http://mirror.selectel.ru/ubuntu xenial-backports/main Translation-en [3,216 B]
Get:44 http://mirror.selectel.ru/ubuntu xenial-backports/universe amd64 Packages [5,808 B]
Get:45 http://mirror.selectel.ru/ubuntu xenial-backports/universe i386 Packages [5,816 B]
Get:46 http://mirror.selectel.ru/ubuntu xenial-backports/universe Translation-en [3,004 B]
Fetched 27.2 MB in 5s (4,685 kB/s)
Reading package lists...

package: action=install name=curl
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -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...
The following NEW packages will be installed:
  curl
0 upgraded, 1 newly installed, 0 to remove and 72 not upgraded.
Need to get 139 kB of archives.
After this operation, 338 kB of additional disk space will be used.
Get:1 http://mirror.selectel.ru/ubuntu xenial-updates/main amd64 curl amd64 7.47.0-1ubuntu2.2 [139 kB]
Fetched 139 kB in 0s (3,012 kB/s)
Selecting previously unselected package curl.
(Reading database ... 55972 files and directories currently installed.)
Preparing to unpack .../curl_7.47.0-1ubuntu2.2_amd64.deb ...
Unpacking curl (7.47.0-1ubuntu2.2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up curl (7.47.0-1ubuntu2.2) ...

Installing Docker...
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -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
Executing docker install script, commit: 29533f9
+ sh -c apt-get update
Hit:1 http://repo.vscale.io xenial InRelease
Ign:2 http://mirror.selectel.ru/ubuntu xenial InRelease
Ign:3 http://mirror.selectel.ru/ubuntu xenial-updates InRelease
Ign:4 http://mirror.selectel.ru/ubuntu xenial-backports InRelease
Hit:5 http://mirror.selectel.ru/ubuntu xenial Release
Hit:6 http://mirror.selectel.ru/ubuntu xenial-updates Release
Hit:7 http://mirror.selectel.ru/ubuntu xenial-backports Release
Hit:8 http://security.ubuntu.com/ubuntu xenial-security InRelease
Reading package lists...
+ sh -c apt-get install -y -q apt-transport-https ca-certificates curl software-properties-common
Reading package lists...
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).
The following additional packages will be installed:
  python3-pycurl python3-software-properties
Suggested packages:
  libcurl4-gnutls-dev python-pycurl-doc python3-pycurl-dbg
The following NEW packages will be installed:
  python3-pycurl python3-software-properties software-properties-common
0 upgraded, 3 newly installed, 0 to remove and 72 not upgraded.
Need to get 72.1 kB of archives.
After this operation, 483 kB of additional disk space will be used.
Get:1 http://mirror.selectel.ru/ubuntu xenial/main amd64 python3-pycurl amd64 7.43.0-1ubuntu1 [42.3 kB]
Get:2 http://mirror.selectel.ru/ubuntu xenial-updates/main amd64 python3-software-properties all 0.96.20.7 [20.3 kB]
Get:3 http://mirror.selectel.ru/ubuntu xenial-updates/main amd64 software-properties-common all 0.96.20.7 [9,452 B]
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: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7, <> line 3.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 72.1 kB in 0s (1,887 kB/s)
Selecting previously unselected package python3-pycurl.
(Reading database ... 55979 files and directories currently installed.)
Preparing to unpack .../python3-pycurl_7.43.0-1ubuntu1_amd64.deb ...
Unpacking python3-pycurl (7.43.0-1ubuntu1) ...
Selecting previously unselected package python3-software-properties.
Preparing to unpack .../python3-software-properties_0.96.20.7_all.deb ...
Unpacking python3-software-properties (0.96.20.7) ...
Selecting previously unselected package software-properties-common.
Preparing to unpack .../software-properties-common_0.96.20.7_all.deb ...
Unpacking software-properties-common (0.96.20.7) ...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up python3-pycurl (7.43.0-1ubuntu1) ...
Setting up python3-software-properties (0.96.20.7) ...
Setting up software-properties-common (0.96.20.7) ...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
+ 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://repo.vscale.io xenial InRelease
Ign:2 http://mirror.selectel.ru/ubuntu xenial InRelease
Ign:3 http://mirror.selectel.ru/ubuntu xenial-updates InRelease
Ign:4 http://mirror.selectel.ru/ubuntu xenial-backports InRelease
Hit:5 http://mirror.selectel.ru/ubuntu xenial Release
Hit:6 http://mirror.selectel.ru/ubuntu xenial-updates Release
Hit:7 http://mirror.selectel.ru/ubuntu xenial-backports Release
Hit:8 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:12 https://download.docker.com/linux/ubuntu xenial InRelease [38.9 kB]
Get:13 https://download.docker.com/linux/ubuntu xenial/edge amd64 Packages [1,766 B]
Fetched 40.7 kB in 0s (76.4 kB/s)
Reading package lists...
+ sh -c apt-get install -y -q docker-ce
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  aufs-tools cgroupfs-mount git git-man liberror-perl libltdl7 libperl5.22
  patch perl perl-modules-5.22 rename
Suggested packages:
  mountall git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
  git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn diffutils-doc
  perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make
The following NEW packages will be installed:
  aufs-tools cgroupfs-mount docker-ce git git-man liberror-perl libltdl7
  libperl5.22 patch perl perl-modules-5.22 rename
0 upgraded, 12 newly installed, 0 to remove and 72 not upgraded.
Need to get 30.8 MB of archives.
After this operation, 162 MB of additional disk space will be used.
Get:1 http://mirror.selectel.ru/ubuntu xenial/main amd64 perl-modules-5.22 all 5.22.1-9 [2,641 kB]
Get:2 http://mirror.selectel.ru/ubuntu xenial/main amd64 libperl5.22 amd64 5.22.1-9 [3,371 kB]
Get:3 http://mirror.selectel.ru/ubuntu xenial/main amd64 perl amd64 5.22.1-9 [237 kB]
Get:4 http://mirror.selectel.ru/ubuntu xenial/universe amd64 aufs-tools amd64 1:3.2+20130722-1.1ubuntu1 [92.9 kB]
Get:5 http://mirror.selectel.ru/ubuntu xenial/universe amd64 cgroupfs-mount all 1.2 [4,970 B]
Get:6 http://mirror.selectel.ru/ubuntu xenial/main amd64 libltdl7 amd64 2.4.6-0.1 [38.3 kB]
Get:7 http://mirror.selectel.ru/ubuntu xenial/main amd64 liberror-perl all 0.17-1.2 [19.6 kB]
Get:8 http://mirror.selectel.ru/ubuntu xenial-updates/main amd64 git-man all 1:2.7.4-0ubuntu1.1 [735 kB]
Get:9 http://mirror.selectel.ru/ubuntu xenial-updates/main amd64 git amd64 1:2.7.4-0ubuntu1.1 [3,068 kB]
Get:10 http://mirror.selectel.ru/ubuntu xenial/main amd64 patch amd64 2.7.5-1 [90.4 kB]
Get:11 http://mirror.selectel.ru/ubuntu xenial/main amd64 rename all 0.20-4 [12.0 kB]
Get:12 https://download.docker.com/linux/ubuntu xenial/edge amd64 docker-ce amd64 17.06.0~ce-0~ubuntu [20.5 MB]
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: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7, <> line 12.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 30.8 MB in 4s (7,438 kB/s)
Selecting previously unselected package perl-modules-5.22.
(Reading database ... 56014 files and directories currently installed.)
Preparing to unpack .../perl-modules-5.22_5.22.1-9_all.deb ...
Unpacking perl-modules-5.22 (5.22.1-9) ...
Selecting previously unselected package libperl5.22:amd64.
Preparing to unpack .../libperl5.22_5.22.1-9_amd64.deb ...
Unpacking libperl5.22:amd64 (5.22.1-9) ...
Selecting previously unselected package perl.
Preparing to unpack .../perl_5.22.1-9_amd64.deb ...
Unpacking perl (5.22.1-9) ...
Selecting previously unselected package aufs-tools.
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) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.2_all.deb ...
Unpacking liberror-perl (0.17-1.2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.7.4-0ubuntu1.1_all.deb ...
Unpacking git-man (1:2.7.4-0ubuntu1.1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.7.4-0ubuntu1.1_amd64.deb ...
Unpacking git (1:2.7.4-0ubuntu1.1) ...
Selecting previously unselected package patch.
Preparing to unpack .../patch_2.7.5-1_amd64.deb ...
Unpacking patch (2.7.5-1) ...
Selecting previously unselected package rename.
Preparing to unpack .../archives/rename_0.20-4_all.deb ...
Unpacking rename (0.20-4) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu17) ...
Setting up perl-modules-5.22 (5.22.1-9) ...
Setting up libperl5.22:amd64 (5.22.1-9) ...
Setting up perl (5.22.1-9) ...
update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode
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) ...
Setting up liberror-perl (0.17-1.2) ...
Setting up git-man (1:2.7.4-0ubuntu1.1) ...
Setting up git (1:2.7.4-0ubuntu1.1) ...
Setting up patch (2.7.5-1) ...
Setting up rename (0.20-4) ...
update-alternatives: using /usr/bin/file-rename to provide /usr/bin/rename (rename) in auto mode
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
+ sh -c docker version
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

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
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -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
(vscale) Calling .GetMachineName
(vscale) Calling .GetIP
Copying certs to the local machine directory...
generating server cert: /Users/mvasin/.docker/machine/machines/vscale/server.pem ca-key=/Users/mvasin/.docker/machine/certs/ca.pem private-key=/Users/mvasin/.docker/machine/certs/ca-key.pem org=mvasin.vscale san=[78.155.218.25 localhost]
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo systemctl -f stop docker
SSH cmd err, output: <nil>:
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -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...
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
printf '%s' '-----BEGIN CERTIFICATE-----
MIIC0DCCAbigAwIBAgIRAIZVzBcvxJtIbliQO8idMFkwDQYJKoZIhvcNAQELBQAw
ETEPMA0GA1UEChMGbXZhc2luMB4XDTE3MDMyNzEyMDMwMFoXDTIwMDMxMTEyMDMw
MFowETEPMA0GA1UEChMGbXZhc2luMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
<truncated>
weBu2vG7HQpORDQLpi0fftm84iSg4Qs9XgUu1rLTYivBgy/lNx770ueFsluPPRKL
i3O8PIsHXtzJL1JuiFvy4rP/77l7njIz0qgBVRM7qNUZiVFvXwfGHPfVk3Qu/F2Y
Bny4PQ==
-----END CERTIFICATE-----
' | sudo tee /etc/docker/ca.pem
SSH cmd err, output: <nil>: -----BEGIN CERTIFICATE-----
MIIC0DCCAbigAwIBAgIRAIZVzBcvxJtIbliQO8idMFkwDQYJKoZIhvcNAQELBQAw
ETEPMA0GA1UEChMGbXZhc2luMB4XDTE3MDMyNzEyMDMwMFoXDTIwMDMxMTEyMDMw
MFowETEPMA0GA1UEChMGbXZhc2luMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
<truncated>
i3O8PIsHXtzJL1JuiFvy4rP/77l7njIz0qgBVRM7qNUZiVFvXwfGHPfVk3Qu/F2Y
Bny4PQ==
-----END CERTIFICATE-----

(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
printf '%s' '-----BEGIN CERTIFICATE-----
MIIDBDCCAeygAwIBAgIQFtoEEWvTiOU5OjQiO0nicTANBgkqhkiG9w0BAQsFADAR
MQ8wDQYDVQQKEwZtdmFzaW4wHhcNMTcwODAxMDgwMjAwWhcNMjAwNzE2MDgwMjAw
WjAYMRYwFAYDVQQKEw1tdmFzaW4udnNjYWxlMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAvNOzBvd3rCThlhh5bMVcenOG6pkM9IXk5Jo+gJepjnU1FxuK
<truncated>
OVP0tRMz2FTErXojzd//6w9CsoL6ygKRkceFNsjc2w706rBqM6X+ZfQ0FbDUYtKn
HeIdoEXTyPx/r9z08cexqwARzVcUvo1OqnAloacmlc0ImazBnFEulRY+Ik7CnUNi
eFj3d39TOOFzFDz5VTOTlduX4Y6QQt32tXPh/WeiaNje7JuEVKhLc8/mPRqKfjYc
OuADxGQCStM=
-----END CERTIFICATE-----
' | sudo tee /etc/docker/server.pem
SSH cmd err, output: <nil>: -----BEGIN CERTIFICATE-----
MIIDBDCCAeygAwIBAgIQFtoEEWvTiOU5OjQiO0nicTANBgkqhkiG9w0BAQsFADAR
MQ8wDQYDVQQKEwZtdmFzaW4wHhcNMTcwODAxMDgwMjAwWhcNMjAwNzE2MDgwMjAw
WjAYMRYwFAYDVQQKEw1tdmFzaW4udnNjYWxlMIIBIjANBgkqhkiG9w0BAQEFAAOC
<truncated>
HeIdoEXTyPx/r9z08cexqwARzVcUvo1OqnAloacmlc0ImazBnFEulRY+Ik7CnUNi
eFj3d39TOOFzFDz5VTOTlduX4Y6QQt32tXPh/WeiaNje7JuEVKhLc8/mPRqKfjYc
OuADxGQCStM=
-----END CERTIFICATE-----

(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
printf '%s' '-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAvNOzBvd3rCThlhh5bMVcenOG6pkM9IXk5Jo+gJepjnU1FxuK
YjqQ4BY9sWf6VFE/JS/FrqsbR5sNz+OKmbYWFqMeh+C9gRkje3hd+Yb6m4BRoaTM
/uHWeGDg/iy8UyurE5GPbvRWd1Pz1VBdelZ2YGIPX8Aytot9oW5KPher726XT/SD
KGK/6PH2XmDJJWc7fKCiurjoIAfOSBM1EMQqgj7exiSe0qObXnA8GnY18R6dB7L+
QYT32L99kmA+FaHm/aPhDxkMM1GVl+Vr40ehKkZcWjyeYLW7adeumPO5SAjHrPxS
iG2QUD2PPZgmQeWTcl6CQcSSkMXEigrVj3pkNwIDAQABAoIBAFwvUhiVmgQdoVBA
<truncated>
V7v/a1sP/X85QrCY7Qq88QKBgQC39DlQkfv2bERM6Vt/hUbFwNX3PNmQOxiJPv/u
zLBs5jyH1Us8GbGMnayPagh2I61glW6GYebTKiG/iWu2Ml7PjFWP4TNzlX59kuxA
5WOaEAMwzHunos61Oct1wvBupDUYihGTkHFtGZjWC2DxCQZAKqd77h/WZHE7XQJe
rVGlcQKBgGvU6Uzs/KOUp3qomeY7g8px4uZXA5yzOAHUN/Uwv2qeJzBIwXEooG+Q
YAJN7m1r0EaCgBuwgvX0QFa4tV/rJhTNu7J53qNJXXEYSkD7kO1+8cbgofLLXWiA
88AjjS3Mh635O/TNAUdTjUSGhsZHk45jUED5puWATTuuML5S7Ojd
-----END RSA PRIVATE KEY-----
' | sudo tee /etc/docker/server-key.pem
SSH cmd err, output: <nil>: -----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAvNOzBvd3rCThlhh5bMVcenOG6pkM9IXk5Jo+gJepjnU1FxuK
YjqQ4BY9sWf6VFE/JS/FrqsbR5sNz+OKmbYWFqMeh+C9gRkje3hd+Yb6m4BRoaTM
/uHWeGDg/iy8UyurE5GPbvRWd1Pz1VBdelZ2YGIPX8Aytot9oW5KPher726XT/SD
KGK/6PH2XmDJJWc7fKCiurjoIAfOSBM1EMQqgj7exiSe0qObXnA8GnY18R6dB7L+
QYT32L99kmA+FaHm/aPhDxkMM1GVl+Vr40ehKkZcWjyeYLW7adeumPO5SAjHrPxS
iG2QUD2PPZgmQeWTcl6CQcSSkMXEigrVj3pkNwIDAQABAoIBAFwvUhiVmgQdoVBA
<truncated>
RrJxsMB8ZGanoYaomv7zeSxyt0bUC1COE861sKocppSPt2hAYeRJsTPK73LpPSC7
V7v/a1sP/X85QrCY7Qq88QKBgQC39DlQkfv2bERM6Vt/hUbFwNX3PNmQOxiJPv/u
zLBs5jyH1Us8GbGMnayPagh2I61glW6GYebTKiG/iWu2Ml7PjFWP4TNzlX59kuxA
5WOaEAMwzHunos61Oct1wvBupDUYihGTkHFtGZjWC2DxCQZAKqd77h/WZHE7XQJe
rVGlcQKBgGvU6Uzs/KOUp3qomeY7g8px4uZXA5yzOAHUN/Uwv2qeJzBIwXEooG+Q
YAJN7m1r0EaCgBuwgvX0QFa4tV/rJhTNu7J53qNJXXEYSkD7kO1+8cbgofLLXWiA
88AjjS3Mh635O/TNAUdTjUSGhsZHk45jUED5puWATTuuML5S7Ojd
-----END RSA PRIVATE KEY-----

(vscale) Calling .GetURL
(vscale) Calling .DriverName
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -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...
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -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/docker daemon -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=generic
Environment=
" | sudo tee /etc/systemd/system/docker.service.d/10-machine.conf
SSH cmd err, output: <nil>: [Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -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=generic
Environment=

(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo systemctl daemon-reload
SSH cmd err, output: <nil>:
(vscale) Calling .GetSSHHostname
(vscale) Calling .GetSSHPort
(vscale) Calling .GetSSHKeyPath
(vscale) 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@78.155.218.25 -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo systemctl -f start docker
SSH cmd err, output: exit status 1: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f start docker
err     : exit status 1
output  : Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

notifying bugsnag: [Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f start docker
err     : exit status 1
output  : Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
]

if I ssh into the machine then, with journalctl --no-pager -u docker I get

-- Logs begin at Tue 2017-08-01 11:06:06 MSK, end at Tue 2017-08-01 11:10:52 MSK. --
Aug 01 11:07:49 vscale systemd[1]: Starting Docker Application Container Engine...
Aug 01 11:07:49 vscale dockerd[5418]: time="2017-08-01T11:07:49.348329901+03:00" level=info msg="libcontainerd: new containerd process, pid: 5435"
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.365944721+03:00" level=warning msg="failed to rename /var/lib/docker/tmp for background deletion: rename /var/lib/docker/tmp /var/lib/docker/tmp-old: no such file or directory. Deleting synchronously"
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.512067045+03:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.512741154+03:00" level=warning msg="Your kernel does not support swap memory limit"
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.512950993+03:00" level=warning msg="Your kernel does not support cgroup rt period"
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.513110850+03:00" level=warning msg="Your kernel does not support cgroup rt runtime"
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.513757281+03:00" level=info msg="Loading containers: start."
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.729813074+03:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.804420102+03:00" level=info msg="Loading containers: done."
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.861813084+03:00" level=info msg="Daemon has completed initialization"
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.862198656+03:00" level=info msg="Docker daemon" commit=02c1d87 graphdriver=aufs version=17.06.0-ce
Aug 01 11:07:50 vscale systemd[1]: Started Docker Application Container Engine.
Aug 01 11:07:50 vscale dockerd[5418]: time="2017-08-01T11:07:50.875207543+03:00" level=info msg="API listen on /var/run/docker.sock"
Aug 01 11:07:53 vscale dockerd[5418]: time="2017-08-01T11:07:53.389713352+03:00" level=info msg="Processing signal 'terminated'"
Aug 01 11:07:53 vscale systemd[1]: Stopping Docker Application Container Engine...
Aug 01 11:07:53 vscale dockerd[5418]: time="2017-08-01T11:07:53.392056342+03:00" level=info msg="stopping containerd after receiving terminated"
Aug 01 11:07:54 vscale systemd[1]: Stopped Docker Application Container Engine.
Aug 01 11:07:58 vscale systemd[1]: Starting Docker Application Container Engine...
Aug 01 11:07:58 vscale docker[5968]: `docker daemon` is not supported on Linux. Please run `dockerd` directly
Aug 01 11:07:58 vscale systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Aug 01 11:07:58 vscale systemd[1]: Failed to start Docker Application Container Engine.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Unit entered failed state.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Aug 01 11:07:58 vscale systemd[1]: Stopped Docker Application Container Engine.
Aug 01 11:07:58 vscale systemd[1]: Starting Docker Application Container Engine...
Aug 01 11:07:58 vscale docker[5982]: `docker daemon` is not supported on Linux. Please run `dockerd` directly
Aug 01 11:07:58 vscale systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Aug 01 11:07:58 vscale systemd[1]: Failed to start Docker Application Container Engine.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Unit entered failed state.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Aug 01 11:07:58 vscale systemd[1]: Stopped Docker Application Container Engine.
Aug 01 11:07:58 vscale systemd[1]: Starting Docker Application Container Engine...
Aug 01 11:07:58 vscale docker[5989]: `docker daemon` is not supported on Linux. Please run `dockerd` directly
Aug 01 11:07:58 vscale systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Aug 01 11:07:58 vscale systemd[1]: Failed to start Docker Application Container Engine.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Unit entered failed state.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Aug 01 11:07:58 vscale systemd[1]: Stopped Docker Application Container Engine.
Aug 01 11:07:58 vscale systemd[1]: docker.service: Start request repeated too quickly.
Aug 01 11:07:58 vscale systemd[1]: Failed to start Docker Application Container Engine.
mvasin commented 7 years ago

If I successfully provision the cloud instance with wget -O - https://get.docker.com | bash, and then try to add it to the list of docker-machines available on my computer with docker-machine create --driver generic --generic-ip-address <ip> --engine-install-url "https://get.docker.com" <name>, it effectively brings remote docker down (errors are exactly as those above).

princemaple commented 7 years ago

same https://github.com/docker/machine/issues/4190

I'll try the workaround suggested in the comments.

kassanmoor commented 7 years ago

I guess this is fixed with the latest provision script changes