Deepin系统安装docker
Deepin系統(tǒng)安裝docker
因?yàn)閐eepin是基于debian發(fā)行版的一個(gè)操作系統(tǒng),所以我們deepin用戶安裝docker可以直接按照下面這個(gè)官方教程來(lái)安裝,不過(guò)由于deepin的特殊性,在第三步會(huì)遇到點(diǎn)問(wèn)題,這里主要記錄一下問(wèn)題得解決辦法,先看一下會(huì)出問(wèn)題的這步:
3 Use the following command to set up the stable repository. To add the nightly or test repository, add the word nightly or test (or both) after the word stable in the commands below. Learn about nightly and test channels.
Note: The lsb_release -cs sub-command below returns the name of your Debian distribution, such as helium. Sometimes, in a distribution like BunsenLabs Linux, you might need to change $(lsb_release -cs) to your parent Debian distribution. For example, if you are using BunsenLabs Linux Helium, you could use stretch. Docker does not offer any guarantees on untested and unsupported Debian distributions.
$ sudo add-apt-repository
“deb [arch=amd64] https://download.docker.com/linux/debian
$(lsb_release -cs)
stable”
這條命令主要就是在我們的軟件源列表里加一行docker的源,執(zhí)行這條命令的時(shí)候會(huì)報(bào)錯(cuò),我們通過(guò)lsb_release -cs命令可以看到我們的系統(tǒng)發(fā)行版信息,得到結(jié)果是 stable ,因?yàn)槟壳癲ocker官方并沒(méi)有針對(duì)stable的版本,所以我選擇手動(dòng)添加一下源,直接編輯 /etc/apt/sources.list
sudo vim /etc/apt/sources.list #文件最后添加一行 deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/debian stretch stable # :qw 保存退出然后就是繼續(xù)按照官方文檔操作就行
sudo apt-get update # 更新源sudo apt-get install docker-ce docker-ce-cli containerd.io # 安裝sudo docker run hello-world # 測(cè)試一下有沒(méi)有問(wèn)題安裝完成
總結(jié)
以上是生活随笔為你收集整理的Deepin系统安装docker的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 储备物资管理局计算机,国考报名税务过审居
- 下一篇: 关注奢交所兄弟品牌佰家当 17年积累撬动