Skip to content

Compatibility Issue with Rootless Docker Mode: Unable to Connect to Docker Daemon #11

@Evgeny105

Description

@Evgeny105

Hello,

First of all, thank you for creating and maintaining this Webmin Docker module.

I am encountering an issue when trying to use the module with Docker installed in rootless mode. The module fails to connect to the Docker daemon and returns the following error:

Error!  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

The root cause appears to be that, in rootless mode, Docker uses a different Unix socket path (e.g., ~/.docker/run/docker.sock or /run/user/$(id -u)/docker.sock) rather than the default /var/run/docker.sock. This deviation from the default path seems to prevent the Webmin Docker module from successfully connecting to the Docker daemon.

Steps to Reproduce:

  1. Install Docker in rootless mode.
  2. Configure Webmin to use the Docker module.
  3. Attempt to connect to the Docker service via Webmin.

Expected Behavior:
The Webmin Docker module should recognize and connect to the Docker daemon using the correct Unix socket path in rootless mode.

Actual Behavior:
The module fails to connect to the Docker daemon, displaying the error mentioned above.

Possible Solutions:

  • Allow users to configure the path to the Docker socket in the module settings.
  • Automatically detect whether Docker is running in rootless mode and adjust the socket path accordingly.
  • Provide guidance in the documentation on how to configure the module for use with rootless Docker.

System Information:

  • Webmin Version: 2.202
  • Docker Version: 27.1.1, build 6312585
  • Operating System: Ubuntu Linux 22.04.4

Thank you for your attention to this issue. I would greatly appreciate any guidance or solutions you can provide.

Best regards,
Evgeny

Metadata

Metadata

Assignees

Labels

backloggedPotential future enhancement or changeenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions