Copy docker host files into a container

Copy the docker a.sh / tmp directory into the interior of the container:

View container ID:

docker ps |grep {image_name}

copy:

docker cp /tmp/a.sh container ID: / root

the above.

Guess you like

Origin www.cnblogs.com/frantz/p/11427242.html