Ubuntu 安裝Docker-ce

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



1. Update the apt package index:
sudo apt-get update


2. Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common


3. Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –


4.Use the following command to set up the stable repository.
sudo add-apt-repository \
“deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable”


5.Update the apt package index.
sudo apt-get update


6.Install the latest version of Docker CE
sudo apt-get install docker-ce



或者直接使用Docker 提供的腳本安裝。
1. curl -fsSL get.docker.com -o get-docker.sh
2. sudo sh get-docker.sh


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