Skip to content

Instantly share code, notes, and snippets.

@jammi
Created April 25, 2019 18:53
Show Gist options
  • Select an option

  • Save jammi/8dd881e7f42ff5dc900543c8788b2f58 to your computer and use it in GitHub Desktop.

Select an option

Save jammi/8dd881e7f42ff5dc900543c8788b2f58 to your computer and use it in GitHub Desktop.
docker-machine 0.16.1 build cee350d7 generic driver issue
$ docker-machine --debug create --driver generic --generic-ip-address=xx.xx.xx.xx --generic-ssh-user=xxxxx xxxxxxxx
Docker Machine Version: 0.16.1, build cce350d7
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:51674
() 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:51680
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(xxxxxxxx) Calling .GetMachineName
(xxxxxxxx) Calling .DriverName
(xxxxxxxx) Calling .GetCreateFlags
(xxxxxxxx) Calling .SetConfigFromFlags
Reading certificate data from /Users/xxxxxx/.docker/machine/certs/ca.pem
Decoding PEM data...
Parsing certificate...
Reading certificate data from /Users/xxxxxx/.docker/machine/certs/cert.pem
Decoding PEM data...
Parsing certificate...
Running pre-create checks...
(xxxxxxxx) Calling .PreCreateCheck
(xxxxxxxx) Calling .GetConfigRaw
Creating machine...
(xxxxxxxx) Calling .Create
(xxxxxxxx) No SSH key specified. Assuming an existing key at the default location.
(xxxxxxxx) DBG | IP: xx.xx.xx.xx
(xxxxxxxx) Calling .GetConfigRaw
(xxxxxxxx) Calling .DriverName
(xxxxxxxx) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(xxxxxxxx) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(xxxxxxxx) Calling .GetSSHHostname
(xxxxxxxx) Calling .GetSSHPort
(xxxxxxxx) Calling .GetSSHKeyPath
(xxxxxxxx) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: <nil>:
Detecting the provisioner...
(xxxxxxxx) Calling .GetSSHHostname
(xxxxxxxx) Calling .GetSSHPort
(xxxxxxxx) Calling .GetSSHKeyPath
(xxxxxxxx) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: <nil>: PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Couldn't set key VERSION_CODENAME, no corresponding struct field found
found compatible host: debian
Provisioning with debian...
No storagedriver specified, using overlay2
installing sudo
(xxxxxxxx) Calling .GetSSHHostname
(xxxxxxxx) Calling .GetSSHPort
(xxxxxxxx) Calling .GetSSHKeyPath
(xxxxxxxx) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
if ! type sudo; then apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y sudo; fi
SSH cmd err, output: <nil>: sudo is /usr/bin/sudo
setting hostname
(xxxxxxxx) Calling .GetMachineName
(xxxxxxxx) Calling .GetSSHHostname
(xxxxxxxx) Calling .GetSSHPort
(xxxxxxxx) Calling .GetSSHKeyPath
(xxxxxxxx) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo hostname xxxxxxxx && echo "xxxxxxxx" | sudo tee /etc/hostname
SSH cmd err, output: <nil>: xxxxxxxx
(xxxxxxxx) Calling .GetSSHHostname
(xxxxxxxx) Calling .GetSSHPort
(xxxxxxxx) Calling .GetSSHKeyPath
(xxxxxxxx) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
if ! grep -xq '.*\sxxxxxxxx' /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 xxxxxxxx/g' /etc/hosts;
else
echo '127.0.1.1 xxxxxxxx' | sudo tee -a /etc/hosts;
fi
fi
SSH cmd err, output: <nil>:
installing base packages
(xxxxxxxx) Calling .GetSSHHostname
(xxxxxxxx) Calling .GetSSHPort
(xxxxxxxx) Calling .GetSSHKeyPath
(xxxxxxxx) Calling .GetSSHUsername
Using SSH client type: external
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
sudo apt-get update
SSH cmd err, output: exit status 100: Hit:1 http://mirror.xxxxxxxxx.xx/debian/packages sid InRelease
Ign:2 https://download.docker.com/linux/debian 10 InRelease
Err:3 https://download.docker.com/linux/debian 10 Release
404 Not Found [IP: 2600:9000:2047:3000:3:db06:4200:93a1 443]
Reading package lists...
E: The repository 'https://download.docker.com/linux/debian 10 Release' does not have a Release file.
Error creating machine: Error running provisioning: Error running "sudo apt-get update": ssh command error:
command : sudo apt-get update
err : exit status 100
output : Hit:1 http://mirror.xxxxxxxxx.xx/debian/packages sid InRelease
Ign:2 https://download.docker.com/linux/debian 10 InRelease
Err:3 https://download.docker.com/linux/debian 10 Release
404 Not Found [IP: 2600:9000:2047:3000:3:db06:4200:93a1 443]
Reading package lists...
E: The repository 'https://download.docker.com/linux/debian 10 Release' does not have a Release file.
notifying bugsnag: [Error creating machine: Error running provisioning: Error running "sudo apt-get update": ssh command error:
command : sudo apt-get update
err : exit status 100
output : Hit:1 http://mirror.xxxxxxxxx.xx/debian/packages sid InRelease
Ign:2 https://download.docker.com/linux/debian 10 InRelease
Err:3 https://download.docker.com/linux/debian 10 Release
404 Not Found [IP: 2600:9000:2047:3000:3:db06:4200:93a1 443]
Reading package lists...
E: The repository 'https://download.docker.com/linux/debian 10 Release' does not have a Release file.
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment