docker cp ssh code example
Example 1: docker ssh
sudo docker exec –it nginx-test /bin/bash
Example 2: copy file to docker container
docker cp foo.txt mycontainer:/foo.txt
Example 3: docker ssh
sudo docker attach Container_Name
sudo docker exec –it nginx-test /bin/bash
docker cp foo.txt mycontainer:/foo.txt
sudo docker attach Container_Name