Docker installation Ubuntu

888u

Last update at :2024-05-18,Edit by888u

Ubuntu is a Linux operating system based on Debian.

1. View available Ubuntu versions

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

You can view other versions of Ubuntu via 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 version of Ubuntu image

$ docker pull ubuntu

Or:

$ docker pull ubuntu:latest

3. View local mirror

$ docker images

As you can see in the picture above, we have installed the latest version of ubuntu.

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

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

5. Installation successful

Finally we can view the running information of the container through the docker ps command:

Recommended site searches: Hong Kong cn2 server, mainland China virtual host, overseas virtual host space, Guangzhou website registration Chinese domain name query, virtual host trial for 30 days, Taiwan host, vps dynamic ip, https proxy ip, Hong Kong vps,

Docker installation Ubuntu

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码