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 do I install docker in a Linux environment?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Recommended Linux installation:

I. install Docker

#Install dependency packages:

yum install -y yum-utils device-mapper-persistent-data lvm2

#Add docker package source

yum-config-manager\

--add-repo\

http://download.docker.com/linux/centos/docker-ce.repo

#Update yum package index

Yum makecache fast

#Install docker CE

Yum install docker-ce

#Start

Systemctl start docker

#unload

yum remove docker-ce

rm -rf /var/lib/docker

Official installation documentation:

https://docs.docker.com/engine/installation/linux/docker-ce/centos/#docker-ee-customers

Public mirror library: hub.docker.com/explore

II. Configure domestic mirror warehouse

1.vim /etc/docker/daemon.json

{

"registry-mirrors":["https://6kx4zyno.mirror.aliyuncs.com"]

}

2. Restart docker: systemctl restart docker

3. See also: ps -ef| grep docker

4. View images: docker images

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

Servers

Wechat

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

12
Report