Easy Tutorial
❮ Docker Diff Command Ubuntu Docker Install ❯

Docker Installation of Ubuntu

Ubuntu is a Linux operating system based on Debian.

1. Check Available Ubuntu Versions

Visit the Ubuntu image repository address: https://hub.docker.com/_/ubuntu?tab=tags&page=1.

You can view other versions of Ubuntu by sorting with "Sort by". The default is the latest version, ubuntu:latest.

You can also find other versions you want from the dropdown list:

2. Pull the Latest Ubuntu Image

$ docker pull ubuntu

Or:

$ docker pull ubuntu:latest

3. Check Local Images

$ docker images

In the image above, you can see that we have installed the latest version of ubuntu.

4. Run the Container and Enter the Ubuntu Container via the exec Command

$ docker run -itd --name ubuntu-test ubuntu

5. Installation Successful

Finally, we can view the container's running information using the docker ps command:

❮ Docker Diff Command Ubuntu Docker Install ❯