I have 2 docker containers running on my system.
I wanted to copy the data from one container to another container from my host system itself.
i know that to copy data from container to host we have to use
docker cp <Source path> <container Id>:path in container
Now i am trying to copy the data directly from one container to another, is there any way to do that ??
i tried doing this.
docker cp <container-1>:/usr/local/nginx/vishnu/vishtest.txt <container-2>:/home/smadmin/vishnusource/
but the above command failed saying its not supported.
i should not copy the data to my local machine, thats my requirement.
anybody have an idea to do this, thanks in advance ?