環境
windows10 Pro
WSL上のubuntu
dockerをインストールしたいのですが、どうもうまくいきません。
sudo apt install docker.io sudo cgroupfs-mount sudo usermod -aG docker $USER sudo service docker start sudo apt install docker-compose sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" sudo apt install docker-ce docker-ce-cli containerd.io sudo docker run hello-world
上記のコードを実行したのですが、エラーが出て、Hello worldが実行できません。昨日は実行できたのですが、なぜか実行できず、尚且つ、sudo apt updateでエラーが出るようになりました。
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Ign:2 https://download.docker.com/linux/ubuntu (lsb_release InRelease
Err:3 https://download.docker.com/linux/ubuntu (lsb_release Release
404 Not Found [IP: 13.35.50.98 443]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu (lsb_release Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list:51
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list:51
W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list:51
W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list:51
W: Target Packages (stable/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list:51
W: Target Translations (stable/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list:51
W: Target CNF (stable/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list:51
W: Target CNF (stable/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list:51
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。