在ubuntu18.04下安裝台夺。
從Docker倉庫下載安裝:
這種安裝方式首先要保證Ubuntu服務(wù)器能夠訪問Docker倉庫地址:https://download.docker.com/linux/ubuntu痴脾,如果能夠訪問,按照下面的操作步驟進行安裝滚朵。
$ sudo apt update
$ sudo apt install apt-transport-https ca-certificates curl software-properties-common
在/etc/apt/sources.list.d/docker.list文件中添加下面內(nèi)容
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
添加秘鑰
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
更新一下
$?sudo apt update
安裝docker-ce
$ sudo apt install docker-ce
查看是否安裝成功:
$ docker --version