Deepin系统安装docker
Deepin系統安裝docker
因為deepin是基于debian發行版的一個操作系統,所以我們deepin用戶安裝docker可以直接按照下面這個官方教程來安裝,不過由于deepin的特殊性,在第三步會遇到點問題,這里主要記錄一下問題得解決辦法,先看一下會出問題的這步:
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的源,執行這條命令的時候會報錯,我們通過lsb_release -cs命令可以看到我們的系統發行版信息,得到結果是 stable ,因為目前docker官方并沒有針對stable的版本,所以我選擇手動添加一下源,直接編輯 /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 保存退出然后就是繼續按照官方文檔操作就行
sudo apt-get update # 更新源sudo apt-get install docker-ce docker-ce-cli containerd.io # 安裝sudo docker run hello-world # 測試一下有沒有問題安裝完成
總結
以上是生活随笔為你收集整理的Deepin系统安装docker的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 储备物资管理局计算机,国考报名税务过审居
- 下一篇: 关注奢交所兄弟品牌佰家当 17年积累撬动