ubuntu16 安装docker machine
时间: 2023-08-22 21:09:52 浏览: 94
要在Ubuntu 16上安装Docker Machine,您可以按照以下步骤进行操作:
1. 首先,将Docker的GPG密钥添加到您的APT密钥环中。您可以使用以下命令执行此操作:
```
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 7EA0A9C3F273FCD8
```
2. 接下来,将Docker的源添加到您的APT源列表中。您可以使用以下命令将Docker源添加到`/etc/apt/sources.list`文件中:
```
echo "deb [arch=amd64 https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
```
3. 现在更新APT软件包索引,以获取Docker软件包的最新版本。使用以下命令执行此操作:
```
sudo apt update
```
4. 最后,安装Docker Machine。使用以下命令执行此操作:
```
sudo apt install docker-machine
```
完成以上步骤后,您应该成功在Ubuntu 16上安装了Docker Machine [1][3。
引用:
`curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -`
`Docker-Machine功能远程主机或者虚拟机自动安装Docker。方便管理多个实例,无论系统是windows、linux还是Mac。安装Docker-Machine $ base=https://github.com/docker/machine/releases/download/v0.16.0 && curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && sudo install /tmp/docker-machine /usr/local/bin/docker-machine`
`add-apt-repository “deb [arch=amd64 https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”`<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Ubuntu16.04安装Docker](https://blog.csdn.net/kk68171930/article/details/79133458)[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 style="max-width: 50%"]
- *2* [Ubuntu Docker-Machine](https://blog.csdn.net/qq_27559331/article/details/89886781)[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 style="max-width: 50%"]
[ .reference_list ]
阅读全文