Centos7系统安装docker

有的docker比较老要想卸载掉

$ yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine 有的docker比较老要想卸载掉

官方源地址配置命令 yumconfigmanageraddrepohttps://download.docker.com/linux/centos/dockerce.repodockeryum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 安装docker yum install docker-ce docker-ce-cli containerd.io

启动docker守护进程

systemctl start docker #打印Docker版本 docker version

拉取hello-world镜像

$ docker pull hello-world

使用hello-world运行一个容器

$ docker run hello-world ———————

全部评论

相关推荐

FieldMatching:看成了猪头顾问,不好意思
点赞 评论 收藏
分享
04-03 12:09
東京大学 C++
求求求求暑期offer:留第一行,剩下的不要
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务