Skip to content

Instantly share code, notes, and snippets.

@moul
Created April 25, 2016 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moul/0d75742b0138e207fc20674bd250fb0e to your computer and use it in GitHub Desktop.
Save moul/0d75742b0138e207fc20674bd250fb0e to your computer and use it in GitHub Desktop.
docker-machine on arm nodes
$ MACHINE_DEBUG=1 docker-machine create -d scaleway --scaleway-commercial-type=C1 test-arm-machine
Docker Machine Version:  0.7.0, build a650a40
Found binary path at /usr/local/bin/docker-machine-driver-scaleway
Launching plugin server for driver scaleway
Plugin server listening at address 127.0.0.1:60535
() 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-driver-scaleway
Launching plugin server for driver scaleway
Plugin server listening at address 127.0.0.1:60539
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(test-arm-machine) Calling .GetMachineName
(test-arm-machine) Calling .DriverName
(test-arm-machine) Calling .GetCreateFlags
(test-arm-machine) Calling .SetConfigFromFlags
Running pre-create checks...
(test-arm-machine) Calling .PreCreateCheck
(test-arm-machine) Calling .GetConfigRaw
Creating machine...
(test-arm-machine) Calling .Create
(test-arm-machine) Creating SSH key...
(test-arm-machine) Creating server...
(test-arm-machine) Starting server...
(test-arm-machine) Calling .GetConfigRaw
(test-arm-machine) Calling .DriverName
(test-arm-machine) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
(test-arm-machine) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -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' : Something went wrong running an SSH command!
command : exit 0
err     : exit status 255
output  :

Getting to WaitForSSH function...
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -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' : Something went wrong running an SSH command!
command : exit 0
err     : exit status 255
output  :

Getting to WaitForSSH function...
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -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' : Something went wrong running an SSH command!
command : exit 0
err     : exit status 255
output  :

Getting to WaitForSSH function...
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -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' : Something went wrong running an SSH command!
command : exit 0
err     : exit status 255
output  :

Getting to WaitForSSH function...
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: <nil>:
Detecting the provisioner...
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: <nil>: NAME="Ubuntu"
VERSION="14.04, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

found compatible host: ubuntu
Provisioning with ubuntu(upstart)...
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -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

(test-arm-machine) Calling .GetMachineName
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo hostname test-arm-machine && echo "test-arm-machine" | sudo tee /etc/hostname
SSH cmd err, output: <nil>: sudo: unable to resolve host naughty-engelbart
sudo: unable to resolve host test-arm-machine
test-arm-machine

(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:

		if ! grep -xq .*test-arm-machine /etc/hosts; then
			if grep -xq 127.0.1.1.* /etc/hosts; then
				sudo sed -i 's/^127.0.1.1.*/127.0.1.1 test-arm-machine/g' /etc/hosts;
			else
				echo '127.0.1.1 test-arm-machine' | sudo tee -a /etc/hosts;
			fi
		fi
SSH cmd err, output: <nil>: sudo: unable to resolve host test-arm-machine

(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo apt-get update
SSH cmd err, output: <nil>: Ign http://mirror.scaleway.com trusty InRelease
Hit http://mirror.scaleway.com trusty Release.gpg
Hit http://mirror.scaleway.com trusty Release
Ign http://ports.ubuntu.com trusty InRelease
Get:1 http://mirror.scaleway.com trusty/main armhf Packages [1,295 kB]
Get:2 http://ports.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://ports.ubuntu.com trusty Release.gpg
Get:3 http://mirror.scaleway.com trusty/universe armhf Packages [5,710 kB]
Hit http://ports.ubuntu.com trusty Release
Get:4 http://ports.ubuntu.com trusty-security/main armhf Packages [408 kB]
Get:5 http://ports.ubuntu.com trusty-security/universe armhf Packages [125 kB]
Get:6 http://mirror.scaleway.com trusty/main Translation-en [762 kB]
Get:7 http://ports.ubuntu.com trusty-security/main Translation-en [251 kB]
Get:8 http://mirror.scaleway.com trusty/universe Translation-en [4,089 kB]
Get:9 http://ports.ubuntu.com trusty-security/universe Translation-en [74.7 kB]
Get:10 http://ports.ubuntu.com trusty/main Sources [1,064 kB]
Ign http://mirror.scaleway.com trusty/main Translation-en_US
Ign http://mirror.scaleway.com trusty/universe Translation-en_US
Get:11 http://ports.ubuntu.com trusty/universe Sources [6,399 kB]
Get:12 http://ports.ubuntu.com trusty/main armhf Packages [1,295 kB]
Get:13 http://ports.ubuntu.com trusty/universe armhf Packages [5,710 kB]
Get:14 http://ports.ubuntu.com trusty/main Translation-en [762 kB]
Get:15 http://ports.ubuntu.com trusty/universe Translation-en [4,089 kB]
Ign http://ports.ubuntu.com trusty/main Translation-en_US
Ign http://ports.ubuntu.com trusty/universe Translation-en_US
Fetched 32.1 MB in 58s (547 kB/s)
Reading package lists...

package: action=install name=curl
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y -o Dpkg::Options::="--force-confnew" curl
SSH cmd err, output: <nil>: Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Installing Docker...
(test-arm-machine) Calling .GetSSHHostname
(test-arm-machine) Calling .GetSSHPort
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHKeyPath
(test-arm-machine) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa (-rw-------)
&{[-F /dev/null -o BatchMode=yes -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@163.172.153.132 -o IdentitiesOnly=yes -i /Users/moul/.docker/machine/machines/test-arm-machine/id_rsa -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: exit status 1: bash: line 0: type: docker: not found
Error: you are not using a 64bit platform.
Docker currently only supports 64bit platforms.

Error creating machine: Error running provisioning: error installing docker:

open : no such file or directory
notifying bugsnag: [Error creating machine: Error running provisioning: error installing docker:
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment