軟件集裝箱化平臺Docker——安裝

安裝

我這邊是阿里雲的Debian系統,按照官網教程走 https://docs.docker.com/install/linux/docker-ce/debian/linux

1.卸載舊軟件(若是有)docker

$ sudo apt-get remove docker docker-engine docker.io containerd runc curl

2.更新軟件倉庫索引工具

$ sudo apt-get update 阿里雲

3.安裝相關工具url

$ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ software-properties-commoncode

4.安裝GPG密鑰教程

$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - 索引

5.設置docker倉庫rem

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

6.更新軟件倉庫索引

$ sudo apt-get update

7.安裝Docker CE

$ sudo apt-get install docker-ce docker-ce-cli containerd.io

8.運行hello-world 映像驗證是否正確安裝了docker-ce

$ sudo docker run hello-world

數據卷位置

/var/lib/docker/volumes

相關文章
相關標籤/搜索