Unable to connect to docker engine on lima when restarting Mac and lima #762
-
Unable to connect to docker engine on lima when restarting Mac and limadetails of the error.
Version
How the error occurs
Status of the Docker engine on lima at the time of the error
Restart Docker engine on lima
After restarting the Docker engine on lima, I get the same error and cannot connect to the Docker engine. How can I make sure that the connection to the Docker engine does not get disconnected when I restart my Mac? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Normally lima starts the user docker (not the system docker), so you would have to use anders@lima-docker:/home/anders/lima$ systemctl --system status docker
○ docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
Active: inactive (dead)
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
anders@lima-docker:/home/anders/lima$ systemctl --user status docker
● docker.service - Docker Application Container Engine (Rootless)
Loaded: loaded (/home/anders.linux/.config/systemd/user/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2022-03-27 08:26:01 UTC; 25min ago
Docs: https://docs.docker.com/go/rootless/
Main PID: 1410 (rootlesskit)
... And it is $XDG_RUNTIME_DIR/docker.sock that is forwarded: portForwards:
- guestSocket: "/run/user/{{.UID}}/docker.sock"
hostSocket: "{{.Dir}}/sock/docker.sock" See https://docs.docker.com/engine/security/rootless/ for details. It is supposed to be "enabled" (start at boot) by default, though? |
Beta Was this translation helpful? Give feedback.
-
Separating between the user containers (a.k.a. rootless, fakeroot) and the system containers would be a good entry for the lima manual. It is something that is often confusing to new users, especially when Docker didn't use |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response. |
Beta Was this translation helpful? Give feedback.
Separating between the user containers (a.k.a. rootless, fakeroot) and the system containers would be a good entry for the lima manual.
It is something that is often confusing to new users, especially when Docker didn't use
sudo
but instead added thedocker
root group...