Menu
Coddy logo textTech

Runtime File Drop

Part of the Introduction to Docker section of Coddy's Terminal journey — lesson 40 of 40.

challenge icon

Challenge

Medium

Deliver a file into a live container and read it back. A file named report.txt is in your directory. Run these commands one after the other:

  1. Start a detached nginx container named host
  2. Copy report.txt into it at /report.txt
  3. Use docker exec to cat /report.txt from inside
  4. Confirm the container is still running with docker inspect --format "{{.State.Status}}"

Try it yourself

Terminal

All lessons in Introduction to Docker