JAEN

Docker

docker cp

SafeCopy to/from container

docker cp <container>:<path> <localpath>

Copies files between a container and the host; grab logs/config.

Examples

  • docker cp web:/etc/nginx/nginx.conf .Pull out a config

Syntax

docker cp <container>:<src> <dest> (works both directions)

Before you run it

Copy only.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store