How to Copy Files to Docker Container?

Published: 01 January 1970
on channel: One Minute Notes
3,460
16

Docker playlist
   • Playlist  

How to copy file to container?
How to copy files from container?


Notes:
docker cp


Description:
Copy files/folders between a container and the local filesystem


Usage
docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH



Extended description
The docker cp utility copies the contents of SRC_PATH to the DEST_PATH. You can copy from the container’s file system to the local machine or the reverse, from the local filesystem to the container. If - is specified for either the SRC_PATH or DEST_PATH, you can also stream a tar archive from STDIN or to STDOUT. The CONTAINER can be a running or stopped container. The SRC_PATH or DEST_PATH can be a file or directory


#docker #dockercontainers #containers #copy


Watch video How to Copy Files to Docker Container? online without registration, duration hours minute second in high quality. This video was added by user One Minute Notes 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,460 once and liked it 16 people.