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?

Docker Desktopを再インストール後、dockerコマンドが使えなくなった

Posted at

はじめに

エラー解決の備忘録です。
Docker Desktopを使っている方で、シェルでdocker psを実行した時に下記のエラーになる方は、一度試してみてください。
Cannot connect to the Docker daemon at unix:///var/run/docker.sock

解決方法

  • docker context lsを実行
    下記のような出力がされます
NAME            DESCRIPTION                               DOCKER ENDPOINT                                    ERROR
default *       Current DOCKER_HOST based configuration   unix:///var/run/docker.sock                        
desktop-linux   Docker Desktop                            unix:///Users/xxxx/.docker/run/docker.sock  
  • docker context use desktop-linuxでDockerDesktopの方を使用するように変更する
  • docker psが実行できるか確認する

参照

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?