Docker容器管理--ubuntu安裝docker

Ubuntu14.06/16.04

安裝證書

sudo apt-get install \
apt-transport-https \
a-certificates \
curl \
software-properties-commonlinux

添加Docker源的KEY

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

添加Docker軟件包源

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

更新apt包索引

sudo apt-get updatecurl

安裝

sudo apt-get install docker-ceide

卸載

sudo apt-get purge docker-ce
sudo rm -rf /var/lib/dockerurl

相關文章
相關標籤/搜索