docker稳定版 centos
时间: 2023-08-25 11:18:32 浏览: 87
Docker的稳定版在CentOS上安装步骤如下:
1. 添加Docker的稳定版仓库,可以使用以下命令:
```shell
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
```
2. 安装Docker,可以使用以下命令:
```shell
sudo yum install docker-ce
```
另外,如果你之前已经安装了旧版本的Docker,可以先卸载旧版本。可以使用以下命令卸载之前安装的组件:
```shell
sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
```
如果需要设置存储库,可以使用以下命令:
```shell
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
```
以上是在CentOS上安装Docker的稳定版的步骤。希望对你有帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Cenots7安装Docker centos安装Docker centos7安装Docker](https://blog.csdn.net/qq_40739917/article/details/130888398)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [CentOS7安装Docker最新版本](https://blog.csdn.net/m0_67390963/article/details/123867550)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文