Docker CE安裝(Ubuntu)

使用存儲庫安裝
1、設置存儲庫
一、更新aptlinux

sudo apt-get update

二、安裝包以容許apt經過HTTPS使用存儲庫:docker

sudo apt-get install  apt-transport-https  ca-certificates  curl  software-properties-common

三、添加Docker的官方GPG密鑰:shell

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88

四、驗證祕鑰ubuntu

root@i-qrxrh78a:~# sudo apt-key fingerprint 0EBFCD88
pub 4096R/0EBFCD88 2017-02-22
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid Docker Release (CE deb) <docker@docker.com>
sub 4096R/F273FCD8 2017-02-22

五、設置穩定存儲庫curl

sudo add-apt-repository  "deb [arch=amd64] https://download.docker.com/linux/ubuntu   $(lsb_release -cs)   stable"

六、更新apt包索引ide

sudo apt-get update

七、安裝docker特定版本測試

apt-cache madison docker-ce
sudo apt-get install docker-ce=17.12.0~ce-0~ubuntu

八、測試dockerui

sudo docker run hello-world
相關文章
相關標籤/搜索