安装
- 进入liunx系统
确定版本:cat /etc/redhat-release
3. :yum -y install gcc
: yum -y install gcc-c++
4.: yum install -y yum-utils
5.下载阿里云仓库
:yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
6. :yum makecache fast
7.:yum -y install docker-ce docker-ce-cli containerd.io
8. :systemctl start docker
检查是否启动: ps -ef|grep docker
最后:docker version---有内容则下载完毕!
使用docker:
: docker run hello-world
Unable to find image 'hello:latest' locally:提示本地没有该镜像文件,接下来会去仓库查询
---卸载
------------------------------------------------------------------------------------------------------
以上部分内容获取于尚硅谷