Друзья помогите плиз.
Поставил docker-machine, настролил две виртуалки, для создания мини-кластера.
Создал пользователя dmash, авторизацию по ключам настроил, права на sudo дал, вручную на машины заходит нормально, sudo также срабатывает.
Но при попытке создать машину командой
docker-machine -D create --driver generic --generic-ip-address=10.100.251.104 --generic-ssh-user=dmash --generic-ssh-key /home/dmash/.ssh/id_rsa test-09
выдает:
docker-machine -D create --driver generic --generic-ip-address=10.100.251.104 --generic-ssh-user=dmash --generic-ssh-key /home/dmash/.ssh/id_rsa test-09
Docker Machine Version: 0.6.0, build e27fb87
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:46165
() 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:46385
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(test-09) Calling .GetMachineName
(test-09) Calling .DriverName
(test-09) Calling .GetCreateFlags
(test-09) Calling .SetConfigFromFlags
Running pre-create checks...
(test-09) Calling .PreCreateCheck
(test-09) Calling .GetConfigRaw
Creating machine...
(test-09) Calling .Create
(test-09) Importing SSH key...
(test-09) DBG | IP: 10.100.251.104
(test-09) Calling .GetConfigRaw
(test-09) Calling .DriverName
(test-09) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(test-09) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(test-09) Calling .GetSSHHostname
(test-09) Calling .GetSSHPort
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHUsername
Using SSH client type: external
{[-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 dmash@10.100.251.104 -o IdentitiesOnly=yes -i /home/dmash/.docker/machine/machines/test-09/id_rsa -p 22] /usr/bin/ssh}
About to run SSH command:
exit 0
SSH cmd err, output: <nil>:
Detecting the provisioner...
(test-09) Calling .GetSSHHostname
(test-09) Calling .GetSSHPort
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHUsername
Using SSH client type: external
{[-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 dmash@10.100.251.104 -o IdentitiesOnly=yes -i /home/dmash/.docker/machine/machines/test-09/id_rsa -p 22] /usr/bin/ssh}
About to run SSH command:
cat /etc/os-release
SSH cmd err, output: <nil>: NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
Couldn't set key CPE_NAME, no corresponding struct field found
Couldn't set key , no corresponding struct field found
Couldn't set key CENTOS_MANTISBT_PROJECT, no corresponding struct field found
Couldn't set key CENTOS_MANTISBT_PROJECT_VERSION, no corresponding struct field found
Couldn't set key REDHAT_SUPPORT_PRODUCT, no corresponding struct field found
Couldn't set key REDHAT_SUPPORT_PRODUCT_VERSION, no corresponding struct field found
Couldn't set key , no corresponding struct field found
found compatible host: centos
Provisioning with centos...
No storagedriver specified, using devicemapper
(test-09) Calling .GetMachineName
(test-09) Calling .GetSSHHostname
(test-09) Calling .GetSSHPort
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHUsername
Using SSH client type: external
{[-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 dmash@10.100.251.104 -o IdentitiesOnly=yes -i /home/dmash/.docker/machine/machines/test-09/id_rsa -p 22] /usr/bin/ssh}
(test-09) Calling .GetSSHHostname
(test-09) Calling .GetSSHPort
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHUsername
Using SSH client type: external
{[-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 dmash@10.100.251.104 -o IdentitiesOnly=yes -i /home/dmash/.docker/machine/machines/test-09/id_rsa -p 22] /usr/bin/ssh}
installing base package: name=curl
(test-09) Calling .GetSSHHostname
(test-09) Calling .GetSSHPort
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHUsername
Using SSH client type: external
{[-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 dmash@10.100.251.104 -o IdentitiesOnly=yes -i /home/dmash/.docker/machine/machines/test-09/id_rsa -p 22] /usr/bin/ssh}
(test-09) Calling .GetSSHHostname
(test-09) Calling .GetSSHPort
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHUsername
Using SSH client type: external
{[-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 dmash@10.100.251.104 -o IdentitiesOnly=yes -i /home/dmash/.docker/machine/machines/test-09/id_rsa -p 22] /usr/bin/ssh}
installing docker
(test-09) Calling .GetSSHHostname
(test-09) Calling .GetSSHPort
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHUsername
Using SSH client type: external
{[-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 dmash@192.168.0.104 -o IdentitiesOnly=yes -i /home/dmash/.docker/machine/machines/test-09/id_rsa -p 22] /usr/bin/ssh}
(test-09) Calling .GetSSHHostname
(test-09) Calling .GetSSHPort
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHKeyPath
(test-09) Calling .GetSSHUsername
Using SSH client type: external
{[-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 dmash@10.100.251.104 -o IdentitiesOnly=yes -i /home/dmash/.docker/machine/machines/test-09/id_rsa -p 22] /usr/bin/ssh}
Error creating machine: Error running provisioning: exit status 1
open : no such file or directory
notifying bugsnag: [Error creating machine: Error running provisioning: exit status 1]
Судя по последним строкам, проблема, вероятно, что он не может открыть какой-то файл - open : no such file or directory
но не факт.
Уже кучу форумов перечитал, но так и не смог завести. Машина по факту создается, вот выхлоп:
docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
test-01 - generic Running tcp://10.100.251.104:2376 Unknown Unable to query docker version: Unable to read TLS config: open /home/dmash/.docker/machine/machines/test-01/server.pem: no such file or directory
но не до конца. TLS-сертификаты мне не нужны, должно по идее работать и без них.
Кто сталкивался, помогите.