Running containers
Lesson 3 of 20 · Ops.Micro
Start in the background, publish a port, read the logs, stop and remove.
Inside the container the app listens on port 80. -p 8080:80 connects port 8080 of your machine to it. -d runs it in the background and --name gives it a friendly name.
Check yourself
What does -p 8080:80 do?
Do it in the browser: a real DevOps tool, a short mission and instant feedback. No install.
Start this lesson — free