docker安装

docker安装

1、卸载docker

$ sudo yum remove docker
docker-client
docker-client-latest
docker-common
docker-latest
docker-latest-logrotate
docker-logrotate
docker-engine

2、使用存储库安装

$ sudo yum install -y yum-utils

$ sudo yum-config-manager
–add-repo
https://download.docker.com/linux/centos/docker-ce.repo

3、安装DOCKER引擎

$ sudo yum install docker-ce docker-ce-cli containerd.io

2、启动Docker并设置开机自启

$ sudo systemctl start docker
$ sudo systemctl enable docker

你可能感兴趣的:(docker安装)