ubuntu使用deb包離線安裝docker

一、參閱

https://docs.docker.com/engine/install/ubuntu/

官方提供三種安裝方式

  • apt-get docker 倉庫
  • deb包
  • script腳本

ubuntu16.04 x68-64 server 這裏選擇使用deb包離線安裝方式。

二、下載

進入鏈接
https://download.docker.com/linux/ubuntu/dists/

查找ubuntu版本對應的代號,如版本號爲"16.04",代號爲"Xenial Xerus",
進入相對應的鏈接目錄 “/xenial/pool/stable/amd64/”,得到下載鏈接"https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/",下載三個deb包,containerd.io,docker-ce-cli,docker-ce,得到三個文件。

  • containerd.io_1.2.6-3_amd64.deb

  • docker-ce-cli_19.03.8_3-0_ubuntu-xenial_amd64.deb

  • docker-ce_19.03.8_3-0_ubuntu-xenial_amd64.deb

三、安裝

sudo dpkg -i *.deb

四、測試

sudo docker run hello-world

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章