Docker Community Forums

Share and learn in the Docker community.

"Back up data volumes" recipe fails


(Evan Prodromou) #1

From this page:

https://docs.docker.com/docker-cloud/tutorials/download-volume-data/

I used this command, which succeeded.

evan@elizabeth:~$ docker-cloud --version
docker-cloud 1.0.3
evan@elizabeth:~$ docker-cloud service run -n downloader -p 22:2222 -e AUTHORIZED_KEYS="$(cat ~/.ssh/id_rsa.pub)" --volumes-from blog-mysql ubuntu
8b8a148a-2acb-4b65-9821-8d19b07ee1ff

In the web interface I’ll get an error message. When I check the timeline, the service is stopped, with this log info:

Preparing to deploy…
Inspecting ubuntu:latest image in the registry
Image up to date in our database
Deploying…
Choosing best nodes…
Candidate node 2922abe5-7a8f-4daf-a3b0-7c1d797dca0b.node.dockerapp.io. State:
Deployed. Total num containers: 2. Num containers from this service: 0
Choosing node 2922abe5-7a8f-4daf-a3b0-7c1d797dca0b.node.dockerapp.io because of a ‘volume from’ restriction
downloader-1: Deploying in 2922abe5-7a8f-4daf-a3b0-7c1d797dca0b.node.dockerapp.io
downloader-1: Pulling image ubuntu:latest in 2922abe5-7a8f-4daf-a3b0-7c1d797dca0b.node.dockerapp.io
downloader-1: Creating in 2922abe5-7a8f-4daf-a3b0-7c1d797dca0b.node.dockerapp.io with docker name downloader-1.bba2a805
downloader-1: Starting with docker id a6936ec0c671eb6a81ae9c95c4ef665bd45ed937732e742540a62e02447c0876 in 2922abe5-7a8f-4daf-a3b0-7c1d797dca0b.node.dockerapp.io
ERROR: downloader-1: Cannot start container a6936ec0c671eb6a81ae9c95c4ef665bd45ed937732e742540a62e02447c0876: failed to create endpoint downloader-1.bba2a805 on network bridge: listen tcp 0.0.0.0:22: bind: address already in use
ERROR: Service Start action on ‘downloader’ (using ‘ubuntu:latest’) has failed

I’ve tried it with tutum/ubuntu, which also fails. Is there something I can do to get at this data?