Docker Install Ubuntu

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.

Docker Install Ubuntu

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

Docker Install Ubuntu

2. Pull the latest Ubuntu image

$ docker pull ubuntu

or:

$ docker pull ubuntu:latest

Docker Install Ubuntu

3. View local image

$ docker images

Docker Install Ubuntu

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

Docker Install Ubuntu

5. Successful installation

Finally, we can view the running information of the container by using the docker ps command.

Docker Install Ubuntu

Like(0)