Docker Community Forums

Share and learn in the Docker community.

Error while creating Docker-machine


(Aloksguha) #1

Hey Experts,

I am new to Docker and trying to add a new docker machine with following configuration / command

docker-machine -D create -d virtualbox
–virtualbox-disk-size 20480
–virtualbox-cpu-count 2
–virtualbox-memory 4096
–engine-env DOCKER_TLS=no
mf-demo

and I am getting following log while creating machine

Docker Machine Version: 0.5.6, build 61388e9
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver virtualbox
Plugin server listening at address 127.0.0.1:49849
() Calling .GetVersion
Using API Version 1
.
.
.
.
.// some othwe logs, unablw to post due to body limit.
.
.
.
(mf-demo) DBG | }
(mf-demo) DBG | STDERR:
(mf-demo) DBG | {
(mf-demo) DBG | }
(mf-demo) DBG | Using SSH client type: external
(mf-demo) DBG | {[-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 docker@127.0.0.1 -o IdentitiesOnly=yes -i /Users/alokguha/.docker/machine/machines/mf-demo/id_rsa -p 49859] /usr/bin//ssh}
(mf-demo) DBG | About to run SSH command:
(mf-demo) DBG | ip addr show dev eth1
(mf-demo) DBG | SSH cmd err, output: : 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
(mf-demo) DBG | link/ether 08:00:27:74:fd:10 brd ff:ff:ff:ff:ff:ff
(mf-demo) DBG | inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1
(mf-demo) DBG | valid_lft forever preferred_lft forever
(mf-demo) DBG | inet6 fe80::a00:27ff:fe74:fd10/64 scope link
(mf-demo) DBG | valid_lft forever preferred_lft forever
(mf-demo) DBG |
(mf-demo) DBG | SSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
(mf-demo) DBG | link/ether 08:00:27:74:fd:10 brd ff:ff:ff:ff:ff:ff
(mf-demo) DBG | inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1
(mf-demo) DBG | valid_lft forever preferred_lft forever
(mf-demo) DBG | inet6 fe80::a00:27ff:fe74:fd10/64 scope link
(mf-demo) DBG | valid_lft forever preferred_lft forever
(mf-demo) DBG |
(mf-demo) DBG | END SSH
(mf-demo) DBG |
Reading CA certificate from /Users/alokguha/.docker/machine/certs/ca.pem
Reading server certificate from /Users/alokguha/.docker/machine/machines/mf-demo/server.pem
Reading server key from /Users/alokguha/.docker/machine/machines/mf-demo/server-key.pem

Error creating machine: Error checking the host: Error checking and/or regenerating the certs: There was an error validating certificates for host “192.168.99.100:2376”: tls: oversized record received with length 20527
You can attempt to regenerate them using ‘docker-machine regenerate-certs [name]’.
Be advised that this will trigger a Docker daemon restart which will stop running containers.

$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
mf-demo - virtualbox Running tcp://192.168.99.100:2376 Unknown Unable to query docker version: Get https://192.168.99.100:2376/v1.15/version: tls: oversized record received with length 20527

Any help highly appreciated.


(Pravingadakh) #2

@aloksguha I am facing the same issue. Did you by any change figure out a workaround for this?