Ubuntu 安裝Docker-ce

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



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


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


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


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」ide


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


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



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

相關文章
相關標籤/搜索