centos7下安装docker
时间: 2023-09-03 21:10:51 浏览: 158
在CentOS 7上安装Docker,可以按照以下步骤进行操作:
1. 首先,使用以下命令安装Docker镜像:
```
docker pull centos:7
```
2. 接下来,重启Docker服务以应用更改:
```
service docker restart
```
3. 如果之前已经安装过旧版本的Docker,可以使用以下命令进行卸载:
```
yum remove docker docker-common docker-selinux docker-engine
```
这样,在CentOS 7上就成功安装了Docker。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [CentOS7 安装Docker](https://blog.csdn.net/WGH100817/article/details/101720467)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [CentOS7安装Docker详细步骤](https://blog.csdn.net/qq_47183158/article/details/125738396)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文