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?

【Rancher Desktop】Dockerが「error during connect: in the default daemon configuration…」と出たときの対処法

Posted at

事象

Dcokerコンテナの稼働状況を見ようとコマンドを打ったところ、下記のようなエラーが出ました。

C:\Users\pj>docker ps
error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.47/containers/json": open //./pipe/docker_engine: The system cannot find the file specified.

確認

自分はRancher Desktopを使っているので、Rancher Desktopを確認します。
image.png
はじめから起動していることもあり問題なさそう。一度再起動しても状況は変わりませんでした。

解決方法

インジケータを開くとRancher Desktopのアイコンが赤くなっていました。
Kunernetesがエラーになっているようです。
image.png

Quit Rancher Desktopで一度停止してから、再度Rancher Desktopを起動します。

image.png

再読み込みがおこなわれましt
image.png

dockerコマンドが使えるようになりました。

C:\Users\pj>docker ps
CONTAINER ID   IMAGE                        COMMAND                   CREATED              STATUS              PORTS     NAMES
a31602098704   11a5d8a9f31a                 "entry"                   About a minute ago   Up About a minute             k8s_lb-tcp-443_svclb-traefik-eca55e84-cxwhq_kube-system_b420f7b7-8c8d-45b7-b920-ad4a4f498b75_11
157587a617fd   11a5d8a9f31a                 "entry"                   About a minute ago   Up About a minute             k8s_lb-tcp-80_svclb-traefik-eca55e84-cxwhq_kube-system_b420f7b7-8c8d-45b7-b920-ad4a4f498b75_11
08bc55c6cee8   5d221316a3c6                 "local-path-provisio…"   About a minute ago   Up About a minute             k8s_local-path-provisioner_local-path-provisioner-6795b5f9d8-rr944_kube-system_4b4ef622-1521-49b2-83d3-4d50334bd615_11
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?