Ubuntu安裝dockerCE

參考

https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#set-up-the-repository

步驟

1. 安裝https支持、add-apt命令支持等前置

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

2. 添加GPG key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

3. 添加dockerCE倉庫源

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

4. 安裝docker

sudo apt-get update
sudo apt-get install docker-ce

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