Docker Install Ubuntu
Ubuntu is a Debian-based Linux operating system.
1. Check for available Ubuntu versions
Visit the Ubuntu image repository at https://hub.docker.com/_/ubuntu?tab=tags&page=1.
You can check 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 –
2. Pull the latest Ubuntu image
$ docker pull ubuntu
or:
$ docker pull ubuntu:latest
3. View local image
$ docker images
In the above image you can see that we have installed the latest version of ubuntu.
4. Run the container and you can access the ubuntu container with the exec command
$ docker run -itd --name ubuntu-test ubuntu
5. Successful installation
Finally, we can view the running information of the container by using the docker ps command.