English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Docker Install Ubuntu

Ubuntu is a Linux operating system based on Debian.

1View available Ubuntu versions

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

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

You can also find other versions you want in the drop-down list:

2Pull the latest version of Ubuntu image

$ docker pull ubuntu

Or:

$ docker pull ubuntu:latest

3View local images

$ docker images

As can be seen in the figure above, we have already installed the latest version of ubuntu.

4Run the container and enter the ubuntu container through the exec command

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

5Installation successful

We can view the container's running information through the docker ps command: