docker installation (learning)

Recommended inux installation:

One. Installation Docker
# install dependencies:
yum the install yum-utils -Y-persistent-Device-Mapper Data LVM2
# Add docker package source
yum-config-Manager \
--add-the repo \
http://download.docker.com/ Linux / CentOS / Docker-ce.repo
# yum update package index
yum makecache the FAST
# CE installation Docker
yum install Docker-ce
# start
systemctl start Docker
# uninstall
yum the 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 image library: https://hub.docker.com/explore
Second, configure mirroring domestic warehouse
1.vim /etc/docker/daemon.json
{
"Registry-Mirrors": [ " HTTPS: //6kx4zyno.mirror.aliyuncs .com "]
} ### Ali cloud mirror
2. restart Docker: systemctl restart Docker
3. View: PS -ef | grep Docker
4. View mirror: docker images

Guess you like

Origin blog.51cto.com/12584051/2474357