LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-container-cp

copy files between container and host

TLDR

Copy file from container to host
$ docker container cp [container]:[/path/in/container] [/local/path]
copy
Copy file from host to container
$ docker container cp [/local/file] [container]:[/path/in/container]
copy
Copy directory
$ docker container cp [container]:[/src/dir] [/dest/dir]
copy

SYNOPSIS

docker container cp [options] src dest

DESCRIPTION

docker container cp copies files between containers and the local filesystem. Works with running or stopped containers.

PARAMETERS

-a, --archive

Archive mode (preserve permissions).
-L, --follow-link
Follow symbolic links.

INSTALL

sudo apt install docker-cli
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid