Alternative content
#Find out a container’s name or ID using the docker ps command:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
72ca2488b353 my_image X hours ago Up X hours my_container
#Copy a file from host to container:
$ docker cp foo.txt 72ca2488b353:/foo.txt
#Copy a file from Docker container to host:
$ docker cp 72ca2488b353:/foo.txt foo.txt