Ubuntu 20.10安装docker
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 20.10安装docker
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前提條件
操作系統要求
要安裝Docker Engine,您需要以下Ubuntu版本之一的64位版本:
Ubuntu Groovy 20.10
Ubuntu Focal 20.04(LTS)
Ubuntu Bionic 18.04(LTS)
Ubuntu Xenial 16.04(LTS)
Docker Engine在x86_64(或amd64)armhf,和arm64體系結構上受支持。
手動安裝
卸載舊版本
Docker 的舊版本被稱為 docker,docker.io 或 docker-engine 。如果已安裝,請卸載它們:
$ sudo apt-get remove docker docker-engine docker.io containerd runc使用官方安裝腳本自動安裝
安裝命令如下:
# 更新apt-get庫 sudo apt-get update # 安裝依賴 sudo apt-get install \apt-transport-https \ca-certificates \curl \gnupg-agent \software-properties-common # 安裝 curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun也可以使用國內 daocloud 一鍵安裝命令:
curl -sSL https://get.daocloud.io/docker | sh檢驗
sudo docker run hello-world# 輸出 Hello from Docker!總結
以上是生活随笔為你收集整理的Ubuntu 20.10安装docker的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: edas部署需要哪些参数_部署无线AP
- 下一篇: dataframe 众数的方法_pand