FahamLah

Commands

docker cp

docker cp <src> <container>:<path>

Risk: Careful

What it does

Copies files between your laptop and a container.

When to use it

For a quick test. Real changes belong in the Dockerfile.

Example

$ docker cp index.html web:/usr/share/nginx/html/

Put a page into web.

$ docker cp web:/etc/nginx/conf.d/default.conf .

Copy a file out.