Docker container files between the host and copy

Easy-- Note: "can not have a space after the middle of the container file name and path of the colon!"

1. Copy from the container to the host:

sudo docker cp vessel name: the file path host file / folder path

2. Copy to copy from the host to the container:

sudo docker cp host file / folder path vessel name: file path 

Guess you like

Origin www.cnblogs.com/skzxc/p/11981971.html