Problem creating a droplet on DigitalOcean

Hi, I run this command to create a new droplet on DigitalOcean
docker-machine create --driver digitalocean --digitalocean-access-token xxxxxxx --digitalocean-size 1gb docker-app-machine

But it’s not successfully executed, this is the log:

Running pre-create checks…
Creating machine…
(docker-app-machine) Creating SSH key…
(docker-app-machine) Creating Digital Ocean droplet…
(docker-app-machine) Waiting for IP address to be assigned to the Droplet…
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)…
Installing Docker…
Copying certs to the local machine directory…
Copying certs to the remote machine…
Setting Docker configuration on the remote daemon…

Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f start docker
err : exit status 1
output : Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.

Do you know what’s going on?

Docker:
Version 17.03.1-ce-mac12 (17661)
Channel: stable
d1db12684b

docker-machine version 0.10.0, build 76ed2a6

running on a mac OS Sierra 10.12.3

This is a bug in your version of docker-machine (docker-machine version 0.10.0).

What happens is that docker-machine starts the docker daemon with the deprecated “docker daemon” command, but it should use “dockerd”.

This problem can be solved by installing a new version of docker (e.g. docker-machine version 0.12.2), e.g. via

curl -L https://github.com/docker/machine/releases/download/v0.12.2/docker-machine-`uname -s-uname -m` >/tmp/docker-machine &&
chmod +x /tmp/docker-machine &&
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine

See Releases · docker/machine · GitHub for the latest release.