0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WSLのUbuntuにおいてdocker container run --rm hello-worldが実行できない

Posted at

背景

WSLのUbuntuにDockerを入れようとしたらうまくいかない

このサイトを参考に実行しようとした。

docker container run --rm hello-world

エラーメッセージ

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

解決策

sudo systemctl start docker

の代わりに

sudo /etc/init.d/docker start

を使用する

レスポンス

 * Starting Docker: docker                                                        

正しく動作するようになりました。

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?