56
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Got permission denied while trying to connect to the Docker daemon socket at 解決方法

Last updated at Posted at 2022-11-05

・エラー内容

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied

・解決方法
以下のコマンドを実行する。

sudo chmod 666 /var/run/docker.sock

解決できたかどうかの確認で何らかの docker コマンドを実行する。

docker ps

以下のように表示されエラーが出なければ解決できた。

ubuntu:~$ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

・参考サイト

56
23
2

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
56
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?