Ad space (banner)
AD

Got the fundamentals? A structured Docker course is a fast way to level up.

Find Docker courses on Udemy

Affiliate link. Costs you nothing extra.

🐳Docker Lessons
Lesson 2 / 45

What Is Docker?

This lesson is for anyone asking "what does Docker actually do?" Docker is a technology for packaging an application together with everything it needs to run — libraries, configuration — into a box called a container, and running it from there.

Traditionally you had to set up an environment on every server, which regularly produced the problem of "it works on my machine but not in production." With Docker you ship the app and its environment together as one container, so it runs the same way anywhere.

A related term is the virtual machine. Where a VM reproduces an entire operating system, a container shares the host's OS kernel and isolates only the application — which makes it far lighter and much faster to start.

A common stumble is understanding containers as merely "lightweight VMs" and missing that they are designed on the assumption that data inside a container may vanish. Persisting data is what volumes are for.

In real work, Docker shows up in nearly every stage of modern software development: standardizing development environments, deploying to production, and running tests in CI/CD pipelines.

Docker
Try it (type this into the pseudo terminal)
docker --version

🧑‍💻 You can type this command into the Docker pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)