From ac394203faa3f9a8e16da050ee442f9057963e04 Mon Sep 17 00:00:00 2001 From: "Guillaume \"TheGuit\" POITTEVIN" Date: Wed, 27 Nov 2024 11:58:19 +0100 Subject: [PATCH] Add section about conflict with snap version of docker --- content/manuals/engine/daemon/troubleshoot.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/content/manuals/engine/daemon/troubleshoot.md b/content/manuals/engine/daemon/troubleshoot.md index 7b68c88fb04a..c07a555426de 100644 --- a/content/manuals/engine/daemon/troubleshoot.md +++ b/content/manuals/engine/daemon/troubleshoot.md @@ -74,6 +74,27 @@ If `DOCKER_HOST` is set as intended, verify that the Docker daemon is running on the remote host and that a firewall or network outage isn't preventing you from connecting. +### Check if you don't have Docker install with snap + +If you are not able to connect to docker, perhaps you have 2 versions of docker installed, standard package distribution (APT, Yum, ...) and Snap version. + +```console +snap list | grep docker +``` + +If you have this kind of result : +```text +docker 27.2.0 2963 latest/stable canonical** - +``` + +Disable and remove the snap : +```console +sudo snap disable docker && sudo snap remove docker --purge +``` + +Then reboot. + + ### Troubleshoot conflicts between the `daemon.json` and startup scripts If you use a `daemon.json` file and also pass options to the `dockerd` command