centos8.2版本下如何安裝dockerlinux
yum-utils
[root@docker yum.repos.d]# yum install -y yum-utils
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io --nobest
由於centos8中已經安裝了containerd.io,因此咱們加上--nobest參數,讓他本身選擇相應的包便可docker
[root@docker yum.repos.d]# docker -v Docker version 19.03.13, build 4484c46d9d
systemctl start docker
hello world
容器Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 0e03bdcc26d7: Pull complete Digest: sha256:7f0a9f93b4aa3022c3a4c147a449bf11e0941a1fd0bf4a8e6c9408b2600777c5 Status: Downloaded newer image for hello-world:latest Hello from Docker!