Deepinシステムインストールdocker

2485 ワード

Deepinシステムインストールdocker


deepinはdebianリリース版のオペレーティングシステムに基づいているため、deepinユーザーがdockerをインストールするには、次の公式チュートリアルに従ってインストールすることができますが、deepinの特殊性のため、3番目のステップで問題が発生します.ここでは主に問題の解決方法を記録し、まず問題が発生するステップを見てみましょう.
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”
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable”

このコマンドは主に私たちのソフトウェアソースリストにdockerのソースを1行追加することです.このコマンドを実行するときにエラーが発生します.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  #          


インストール完了