Centos7安装Docker(图文)
1.卸载docker旧版本(我的centos7是新的,所以运行后不删除任何软件包)
1 2 3 4 5 6 7 8 |
yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine |
2.安装yum-utils软件包
1 | yum install -y yum-utils |
3.设置Docker仓库(这里使用阿里云地址)
1 2 3 |
yum-config-manager \ --add-repo \ http: //mirrors .aliyun.com /docker-ce/linux/centos/docker-ce .repo |
4.更新yum软件包索引
1 | yum makecache fast |
5.安装最新版本的Docker
1 | yum install docker-ce docker-ce-cli containerd.io |
下面这一步选择 y
然后会出现下面这种情况:(官网已经给了我们提示)指纹匹配选择 y
6.启动docker
1 | systemctl start docker |
7.查看docker版本
1 | docker version |
8.测试运行
1 | docker run hello-world |
出现Hello from Docker说明测试成功
点个赞! ()
- 上一篇
docker镜像的导入和导出的实现
gitlab 的docker使用gitlab docker启动命令 1 2 3 docker run -d -p 3000:80 twang2218/gitlab-ce-zh:9.0.3 docker run -d -p 8080:80 gitlab/gitlab-ce:latest 将容器修改提交到镜像 1 2 3 4 5 6 7
- 下一篇
nginx优化的几点方法(图文)
一.优化Nginx并发量 1 2 3 [root@proxy ~]# ab -n 2000 -c 2000 http://192.168.4.5/ Benchmarking 192.168.4.5 (be patient) socket: Too many open files (24) //提示打开文件数量过多 修改Nginx配置
更多相关
相关文章
- linux的目录结构;Linux系统各个目录的作用介绍
- mssql2000数据库通过附加数据库转到SQL2008(图文)
- Win2012配置asp网站(图文教程)
- win2008 r2系统iis7中如何设置ip限制(图文)
- IIS7 支持html页面包含(include)html页面 IIS设置与代码编写
- Win2003+IIS6.0+php5.2.2+MySQL 5.0.41+phpMyAdmin 2.10.1环境配置安装
- 网站采集入库502 Bad Gateway错误时,修改PHP 配置修改参考
- 出错了,[腾讯云COSFS]运行时发生错误!qcloud_cos.cos_exception.CosClientError: SecretId and SecretKey is Required!
- 腾讯Linux云主机快速挂载云盘命令,设置开机自动挂载详细图文教程
- 腾讯轻量云主机win2012系统挂载SSD云硬盘操作步骤(图文)