In this tutorial, Docker you'll go step by step from basic concepts all the way to running a real project inside a container. Once you understand Docker, you'll be able to run an app in the same environment whether it's on your own machine or on a server. Docker goes a long way toward killing off that age-old developer headache of "but it works on my machine."
What you'll learn on this page
• The difference between a Docker image and a container
• The most commonly used Docker commands
• How to build your own image with a Dockerfile
• Port mapping and opening your app in a browser
• Using volumes so your data doesn't disappear
• Running multiple services at once with Docker Compose
• Building a mini project: an Nginx static website
Click through each topic in the lesson list on the left and work through them step by step. For every command, we break down the code, what it does, things to watch out for, and the expected result.
Info
When you're starting out with Docker, understanding the four core concepts — image, container, port, and volume — will make troubleshooting far easier down the road than just memorizing commands.