docker cp
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
Options
Name, shorthand | Default | Description |
---|---|---|
--follow-link, -L | false | Always follow symbol link in SRC_PATH |
Parent command
Command | Description |
---|---|
docker | The base command for the Docker CLI. |
Extended description
Copy files/folders between a container and the local filesystem
Use ‘-‘ as the source to read a tar archive from stdin and extract it to a directory destination in a container. Use ‘-‘ as the destination to stream a tar archive of a container source to stdout.
© 2013–2016 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
https://docs.docker.com/engine/reference/commandline/cp/