问题
I already found ways for moving file between host and container but was not able to figure out on how to moves files within same container using YML. Can some one help me on this?
回答1:
You can use ssh command. First find IP of each docker container and then ssh into one terminal to transfer file.
man scp
The very basic usage:
scp remote_user@remote_host:/path/to/remote/file /path/to/local/file
and vice versa:
scp /path/to/local/file remote_user@remote_host:/path/to/remote/file
来源:https://stackoverflow.com/questions/41732234/how-can-i-copy-a-file-from-one-folder-to-another-folder-within-a-container-in-do