Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to Docker in Linux installation

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article is to share with you about how to install Docker in Linux, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Docker is an open source application container engine that allows developers to package their applications and dependencies into a portable image, publish them to any popular Linux or Windows machine, and virtualize them. Containers are fully sandboxed and will not have any interface with each other. Next, I will explain the steps of installing docker under Linux.

1. You can use the following command to view the CentOS version: lsb_release-a, if this command is not found, we need to install redhat-lsb

Lsb_release-a

two。 Solution, enter the command: yum install-y redhat-lsb enter this and wait for the installation to succeed

Yum install-y redhat-lsb

3. There will be no problem if you check it again as above. You can check the version. Command: lsb_release-a

Lsb_release-a

4. Installing docker on CentOS 7 requires the system to be 64-bit and the kernel version is above 3.10, which can be viewed with the following command: uname-r

Uname-r

5. Check to see if docker is installed list: yum list installed | grep docker, nothing prompts us that we haven't installed yet

Yum list installed | grep docker

6. Install docker:yum-y install docker

Yum-y install docker

7. Start dock systemctl start docker

Dock systemctl start docker

8. Check whether the service status is started. The following figure shows that the startup is successful: systemctl status docker

Systemctl status docker

The above Active (running) shows that your docker installation is successful, and you can install the tools you need to use on your own.

9. Set the boot auto start command: systemctl enable docker.service

Systemctl enable docker.service

If you encounter problems during the installation process, you can leave a message in the comments section or visit the Docker Docs website (https://docs.docker.com) to view the installation guide.

The above is how to Docker in the Linux installation, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report