Menu
Coddy logo textTech

Recap - Package It Up

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

challenge icon

Challenge

Medium

Package a file into an image. A file named config.txt is already in your directory. Run these commands one after the other:

  1. Write a Dockerfile: FROM alpine, then COPY config.txt /etc/config.txt
  2. Build it tagged packaged
  3. Run it to cat /etc/config.txt

Try it yourself

Terminal

All lessons in Introduction to Docker