Menu
Coddy logo textTech

Build And Run

Part of the Introduction to Docker section of Coddy's Terminal journey. Lesson 35 of 40.

challenge icon

Challenge

Medium

Now turn the Dockerfile into a real image and run it. Run these commands one after the other:

  1. Write the Dockerfile again: FROM alpine and CMD ["echo", "Welcome to the greeting app"]
  2. Build it tagged greetapp
  3. Run greetapp so its CMD greeting prints

Try it yourself

Terminal
cat > Dockerfile << 'EOF'
FROM alpine
CMD ["echo", "Welcome to the greeting app"]
EOF
cat Dockerfile

All lessons in Introduction to Docker

Practice on your own: Terminal playground