ubuntu18.04 docker安装
时间: 2023-08-26 16:15:11 浏览: 148
要在Ubuntu 18.04上安装Docker,你可以按照以下步骤进行操作:
1. 添加Docker源。可以使用以下命令添加Docker稳定版的官方软件源:
sudo add-apt-repository "deb [arch=amd64 https://download.docker.com/linux/ubuntu bionic stable" [2]
2. 更新软件包列表。运行以下命令更新软件包列表:
sudo apt update
3. 安装Docker CE。运行以下命令安装Docker CE:
sudo apt install docker-ce
4. 启动Docker服务。运行以下命令启动Docker服务:
sudo systemctl start docker
5. 验证安装。运行以下命令验证Docker安装是否成功:
sudo docker run hello-world
这样就完成了在Ubuntu 18.04上安装Docker CE的过程。请注意,以上步骤假设你已经使用了Ubuntu 18.04,并且具有适当的权限来执行这些命令。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [Ubuntu 18.04 Docker安装指南](https://blog.csdn.net/wblylh/article/details/127471316)[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^chatsearchT3_1"}} ] [.reference_item]
- *2* [【Ubuntu18.04】安装Docker教程](https://blog.csdn.net/iefenghao/article/details/90747642)[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^chatsearchT3_1"}} ] [.reference_item]
- *3* [Ubuntu 18.04安装Docker](https://blog.csdn.net/Mr_robot_strange/article/details/106296911)[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^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文