docker-machine scp从本地目录到机器
我试图从我的电脑复制一些证书到docker-machine
configuration的DigitalOcean液滴。
docker-machine scp /local/path/to/certs/* machine-name:/etc/secure/
这给了我一个错误Improper number of arguments
。 鉴于使用文档说:
Arguments are [machine:][path] [machine:][path]
我真的不知道如何实现我想要的。
我认为*通配符将被shell中的所有文件replace为/local/path/to/certs
。 因此, docker-machine scp
收到超过2个参数,因此错误。
我想你应该使用-r标志将一个文件夹的内容复制到另一个文件夹。