Member-only story

Yes, You Can Run an OS in Docker

How to Run and Manage Linux Containers in Docker

Mwiza Kumwenda
5 min readNov 15, 2022
Photo by Gabriel Heinzer on Unsplash

Docker is the most-loved tool according to Stack Overflow’s 2022 developer survey. It is widely used in IT and has revolutionized the way we deploy applications.

Docker containers are a bit similar to virtual machines, but are more lightweight. To appreciate how minimal Docker containers can be, let’s run Ubuntu in Docker.

Getting the Ubuntu Image

To run Docker commands, you need to have Docker installed on your PC.

You can download the latest image of Ubuntu using the following command.

sudo docker pull ubuntu

Docker will download the latest image to your PC if you don’t already have it locally.

You can list all the docker images on your PC using the sudo docker images command.

Running the Ubuntu Image

A Docker Image is simply a blueprint of instructions for building a container. A running instance of a Docker image is called a container. To bring the Ubuntu image we’ve just…

--

--

Mwiza Kumwenda
Mwiza Kumwenda

No responses yet