Cheatsheet Pages / Docker Cheatsheet

How to copy files in and out of a container — docker cp

A config file needs to come out for inspection, or a fixed file needs to go in.

docker cp web:/etc/nginx/nginx.conf ./      # container -> host
docker cp ./index.html web:/usr/share/nginx/html/  # host -> container
Docker Cheatsheet one-page card — commands that actually work
The full one-page card — Docker Cheatsheet. Get the complete cheatsheet on GitHub