Open niieani opened 8 years ago
Also ran into this.
Running pre-create checks...
Creating machine...
(wdb) Importing SSH key...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Error creating machine: Error running provisioning: ssh command error:
command : sudo hostname wdb && echo "wdb" | sudo tee /etc/hostname
err : exit status 127
output : fish: Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
sudo hostname wdb && echo "wdb" | sudo tee /etc/hostname
The shell for
root
was set at/usr/bin/fish
. Here's the output ofdocker-machine create -d generic (...)
:The workaround is to temporarily change root's shell back to
/bin/bash
using thechsh
command.Additionally, docker-machine didn't clean up after the failed creation and I had to manually run
docker-machine rm worker
to remove the leftovers and start over.