Open ghost opened 8 years ago
Experiencing the same issue here with a significantly simpler setup.
`docker-machine --debug create xxxx --driver generic --generic-ip-address ec2-xxxxxxxx.us-west-2.compute.amazonaws.com --generic-ssh-user core --generic-ssh-key key.pem```
Getting the same with this simple command.
Description of problem: docker-machine exits with return code 1 when creating a machine with driver generic (when no swarm options are added to the command line). --debug reveals a message "open : no such file or directory" which looks like docker-machine trying to reference an undefined variable for a file to read.
docker version
: 1.10.3docker-machine version
: docker-machine version 0.6.0, builduname -a
: Linux HOSTNAME 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016 x86_64 GNU/LinuxEnvironment details (AWS, VirtualBox, physical, etc.): Vagrant (with Libvirt/KVM), docker-machine generic driver.
How reproducible: Always
Steps to Reproduce: A little insight in my development project:
I use a Makefile to make actions reproducable. Make has the following variables configured:
MACHINE_STORAGE_PATH=$(CURDIR)/.docker/machine
MACHINE_CA_PATH=$(CURDIR)/ca
Relevant Make targets:
Actual Results: docker-machine successfully bootstraps docker daemon on Vagrant VM with IP 10.20.30.40 including TLS authentication and
docker-machine -s bootstrap/vagrant/.docker/machine ls
functions properly. Anyway docker-machine returns exit code 1 with the following error messages (using --debug):Expected Results: docker-machine does not return 1 (error) when successfully bootstrapping docker daemon on a remote host using driver generic.
Additional info: This does not fail for me if I add swarm options to the bootstrapping process. Same scenario, make target machine1 looks like this: