简体   繁体   中英

Docker: Deploying app on a cluster

I am trying to deploy app in a cluster according to this tutorial:

https://docs.docker.com/get-started/part4/#deploy-your-app-on-a-cluster

However, I got stuck in a simple problem. I am supposed to copy the file docker-compose.yml I created to the swarm manager myvm1's home directory (alias: ~) by using the docker-machine scp command:

docker-machine scp docker-compose.yml myvm1:~

If I use this code, I am getting this error:

command-line line 0: garbage at end of line; "Barua\\.docker\\machine\\machines\\myvm1\\id_rsa".
lost connection
exit status 1

I exactly do not know what's wrong I am doing. Am I supposed to copy docker-compose.yml file in the myvm1 directory? It will be very great if you can explain a bit how can I solve it. Thanks a lot :)

I encountered the same problem and did some research. The issue seems to lie in the fact that your username is separated with a space. There is no current fix to this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM