您现在的位置是: 首页 > 运维 CentOS 安装 Docker
CentOS 安装 Docker
2020-05-21 【运维】 1989人已围观 3209次浏览
简介CentOS 安装 Docker
并不建议直接使用 yum install -y docker ,因为安装出来的版本太低了
卸载旧版本(不影响已经存在的镜像)
yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
通过阿里云一键脚本安装最新版本(推荐,比较方便,省去了依赖安装和设置软件仓库的步骤)
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
安装过程中会提示 GPG 密钥,稍微等一会就可以了。
最后会有一个 docker 用户之类的警告,不影响使用
安装完成之后并没有启动,可以通过下面的命令启动
systemctl start docker
设置开机自启
systemctl enable docker
需要注意的是,默认安装出来的 Docker 路径是在 /var/lib/docker 下面,如果 Linux 其他磁盘是 SSD,最好迁移 Docker 到 SSD 磁盘中,可以提高性能
很赞哦! (0)
相关文章
- Docker 批量操作命令
- mybatis中大于等于小于等于的写法
- Debian/Ubuntu无netstat命令解决方案
- 查看MySQL默认读取的配置文件
- 【Docker】unauthorized: incorrect username or password
- Linux no space left on device 出现设备上没有空间问题
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- Linux 常用命令 持续更新中...
- Linux 安装 Tengine
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- win10 cmd下运行python命令弹出windows应用商店问题
- win10 cmder Debian 安装配置 oh-my-zsh
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- 防止Time Machine备份Parallels Desktop的虚拟硬盘文件
- PHP 中list()出现Undefined offset: 0错误
- Nestedset 出现 Node must exists. 错误解决方案
- 在使用Flutter进行网络请求时,使用Dio访问https地址出现unable to get local issuer certificate错误
- 获取阿里云CDN真实IP
- Nginx转发阿里云OSS内网流量