Menu
Coddy logo textTech

Ship A Tagged Version

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

challenge icon

Challenge

Medium

Finish the project by shipping a versioned release of your image. Run these commands one after the other:

  1. Write the personalized Dockerfile again (FROM alpine, COPY name.txt /name.txt, CMD ["cat", "/name.txt"])
  2. Build it tagged greetapp:1.0
  3. List the greetapp images to confirm the 1.0 tag exists

Try it yourself

Terminal
cat > Dockerfile << 'EOF'
FROM alpine
COPY name.txt /name.txt
CMD ["cat", "/name.txt"]
EOF
docker build -t greetapp .
docker run greetapp

All lessons in Introduction to Docker