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コマンドを叩いた時にCannot connect to the Docker daemon at unix:///Users/hoge/.docker/run/docker.sock. Is the docker daemon running?というエラーが出た時

Last updated at Posted at 2025-01-31

エラーの内容

例えばdocker compose upなどのコマンドを叩いた時に
Cannot connect to the Docker daemon at unix:///Users/hoge/.docker/run/docker.sock. Is the docker daemon running?
このエラーは、Dockerクライアント(コマンドラインツール)がDockerデーモン(バックグラウンドで動作するサービス)に接続できない時に発生することがあります。

結論

大体の場合はDocker Desktopが立ち上がっていない場合なので、

$ open -a docker

のコマンドを叩いてDocker Desktopを立ち上げると解消されます。

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?