简体   繁体   English

Docker:在集群上部署应用

[英]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 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的主目录(别名:〜):

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? 我是否应该在myvm1目录中复制docker-compose.yml文件? 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. 目前没有对此的修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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