Docker Community Forums

Share and learn in the Docker community.

Docker-machine with generic driver fails with"sudo apt-get update": ssh command error:

Hi There experts,

I am trying to use docker machine as the way to deploy a multi container app to a existing DOCKER DROPLET on DO

I reach the stage of provisioning but fails with

Provisioning with ubuntu(systemd)...
Error creating machine: Error running provisioning: Error running "sudo apt-get update": ssh command error:
command : sudo apt-get update
err     : exit status 255
output  :

my Statetement is :
docker-machine create --driver generic --generic-ip-address=142.93.250.195 --generic-ssh-user root --generic-ssh-key ~/.ssh/id2_rsa docker1