docker 部署乌班图
时间: 2023-09-11 17:08:02 浏览: 207
要在Ubuntu上部署Docker,你可以按照以下步骤进行操作:
1. 首先,更新并安装Docker-CE,你可以使用以下命令:
[1]
```
sudo apt-get -y update
sudo apt-get install docker-ce docker-ce-cli containerd.io
```
2. 接下来,添加Docker的官方GPG密钥,你可以使用以下命令:
[3]
```
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
```
3. 接着,退出当前的Ubuntu终端并重新进入一个新的终端。
4. 使用`docker ps -a`命令查找到你要进入的Docker容器的CONTAINER ID。
5. 进入该Docker容器的Ubuntu系统,使用以下命令:
[2]
```
docker attach <CONTAINER_ID>
```
现在,你成功部署了乌班图系统的Docker容器。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [乌班图(Ubuntu)安装docker步骤](https://blog.csdn.net/qq_40539437/article/details/111407880)[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* [Docker容器中运行Ubuntu系统](https://blog.csdn.net/u010164190/article/details/80065555)[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 ]
阅读全文