Skip to main content

Posts

Showing posts from May, 2021

My Docker crash course

Docker has taken the container world by storm. If you understood LXC from the previous post, Docker will feel like a polished toolkit built on similar ideas. This post gives you a quick start so you can begin running containers in minutes. First, install Docker on your system. On Linux you can install it via your distribution’s package manager. On Windows and macOS you can download Docker Desktop from the official Docker website. Once installed, verify it works: docker --version If you see version information, you are ready. Run your first container: docker run hello-world Docker will pull the image if it does not exist locally and then execute it. Congratulations. You just ran your first container. To see running containers: docker ps To see all containers including stopped ones: docker ps -a To run an interactive Ubuntu container: docker run -it ubuntu /bin/bash You are now inside the container shell. To exit: exit To stop a running container: docker stop...