centos docker安装
时间: 2023-09-06 19:13:27 浏览: 123
在CentOS系统上安装Docker有几种方法。首先,你可以使用以下命令来安装Docker CE(社区版)和相关组件:
```
sudo yum install docker-ce docker-ce-cli containerd.io -y
```
另外一种方法是通过以下命令安装Docker CE(社区版):
```
sudo yum install docker-ce docker-ce-cli containerd.io
```
如果你想使用官方镜像进行安装,可以使用以下命令将官方镜像源添加到CentOS系统中:
```
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
```
以上是在CentOS系统上安装Docker的几种方法,你可以根据自己的需要选择其中之一来安装Docker。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [centos安装 docker的教程](https://blog.csdn.net/puzi0315/article/details/121140518)[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_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Centos安装Docker的详细安装步骤](https://blog.csdn.net/PyongSen/article/details/123053374)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文