Docker installation CentOS

888u

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

CentOS (Community Enterprise Operating System) is one of the Linux distributions. It is compiled from the source code released by Red Hat Enterprise Linux (RHEL) in accordance with open source regulations. Because it comes from the same source code, some servers that require high stability use CentOS instead of the commercial version of Red Hat Enterprise Linux.

1. View available CentOS versions

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

You can view other versions of CentOS through Sort by. The default is the latest version centos:latest.

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

2. Pull the CentOS image of the specified version. Here we install the specified version as an example (centos7):

$ docker pull centos:centos7

3. View local mirror

Use the following command to check whether centos7 is installed:

$ docker images

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

$ docker run -itd --name centos-test centos:centos7

5. Installation successful

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

Recommended site search: Dongguan virtual host, Hong Kong server, private server website space, rental server, US multi-IP station group vps, exclusive host, German server, US server, view IP, permanent free cloud server address,

Docker installation CentOS

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