Recap - Package It Up
Part of the Introduction to Docker section of Coddy's Terminal journey. Lesson 27 of 40.
Challenge
MediumPackage a file into an image. A file named config.txt is already in your directory. Run these steps one after the other:
- Open
Dockerfilefrom the file tree, writeFROM alpinethenCOPY config.txt /etc/config.txt, and save it - Build it tagged
packaged - Run it to
cat /etc/config.txt
Try it yourself
Terminal
All lessons in Introduction to Docker
Practice on your own: Terminal playground