WSL2 Debianインストールドッカ

App StoreのダウンロードのDebian

インストールのドッキングウィンドウ

インストールが依存します

オープンインストールインストールは、ドッキングウィンドウに依存します

sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

GPG公開鍵のドッキングウィンドウを追加します。

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

リポジトリを追加します

sudo add-apt-repository \
   "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
   $(lsb_release -cs) \
   stable"

最終的なインストール

apt-get update
sudo apt-get install docker-ce

プロンプトが表示ドッキングウィンドウ-ceがない場合
には、最初の実行

apt-get install docker

そして、インストールを続行

正常にインストール開始した後、

docker run hello-world
# 添加到用户组
sudo adduser $USER docker

おすすめ

転載: www.cnblogs.com/fiany/p/12078422.html