debian 安裝Docker CE
作者:tseng 日期:2017-03-21
一、安裝apt透過HTTPS使用存儲庫
Jessie or Stretch:
$ apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
Wheezy:
$ apt-get install \
apt-transport-https \
ca-certificates \
curl \
python-software-properties
二、增加官方Docker GPG key
$ curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
$ 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
三、設定穩定的倉庫
$ add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
四、INSTALL DOCKER CE
$ apt-get update
apt-get install docker-ce
版本
docker -v
測試
docker run hello-world
Jessie or Stretch:
$ apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
Wheezy:
$ apt-get install \
apt-transport-https \
ca-certificates \
curl \
python-software-properties
二、增加官方Docker GPG key
$ curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
$ 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
三、設定穩定的倉庫
$ add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
四、INSTALL DOCKER CE
$ apt-get update
apt-get install docker-ce
版本
docker -v
測試
docker run hello-world
评论: 0 | 引用: 0 | 查看次数: 2281
发表评论