Ubuntu 16.04 安裝 Docker

在Ubuntu上安裝Docker, 很是簡單, 我測試過 16.04, 17.04, 以及最新版 18.04,都是能夠成功安裝,並使用的。 linux

 

第一步:  啓動root帳號docker

第二步:  配置網絡,能上網ubuntu

第三步: 安裝Docker, 使用如下腳本:網絡

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


$ sudo apt-get update
$ sudo apt-get install docker.io測試

$ systemctl start dockerurl

$ systemctl status dockerget

$ docker image lsit

$ docker pull 鏡像名     ---- 開始下載鏡像io

 

Docker 的使用在下一篇詳細介紹。  

相關文章
相關標籤/搜索