Build And Run
Part of the Introduction to Docker section of Coddy's Terminal journey. Lesson 35 of 40.
Challenge
MediumNow turn the Dockerfile into a real image and run it. The Dockerfile from the previous step is in your directory (open it from the file tree if you want to check it). Run these commands one after the other:
- Build it tagged
greetapp - Run
greetappso itsCMDgreeting prints
Try it yourself
Terminal
cat DockerfileAll lessons in Introduction to Docker
4Managing Containers
Naming ContainersDetached ContainersListing All ContainersStopping And RemovingRecap - Container Lifecycle10Greeting App Project
Project OverviewWrite The DockerfilePractice on your own: Terminal playground