Docker install 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 use Sort by to view other versions of Ubuntu. The default is the latest version, ubuntu:latest.

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

2. Pull the latest Ubuntu image
$ docker pull ubuntu
or:
$ docker pull ubuntu:latest
3. View local images
$ docker images
In the figure above we can see that we have installed the latest version of ubuntu.
4. Run the container, and you can enter the ubuntu container via the exec command
$ docker run -itd --name ubuntu-test ubuntu
5. Installation successful
Finally, we can check the container's running information with the docker ps command:



