I have 2 docker containers in my system.
I wanted to copy data from one container to another container from my host system itself.
I know that to copy data from the container to the host, we must use
docker cp <Source path> <container Id>:path in container
Now I'm trying to copy data directly from one container to another, is there any way to do this?
I tried to do it.
docker cp <container-1>:/usr/local/nginx/vishnu/vishtest.txt <container-2>:/home/smadmin/vishnusource/
but the above command did not say that they did not support it.
I do not have to copy data to my local computer, this is my requirement.
Anyone have an idea to do this, thanks in advance?
docker docker-container dockerfile docker-swarm
Vishnu Ranganathan May 22 '17 at 18:14 2017-05-22 18:14
source share