Copying Files

Difficulty: Beginner

Question

How do you copy a file from the host to a running container?

Answer

Use `docker cp <host_path> <container_id>:<container_path>`.

Concepts covered

Copy, CLI