FS#65458 - [Docker] systemd service creates sock in `/run` while docker wants it in `/var/run`
Attached to Project:
Community Packages
Opened by Pellegrino Prevete (tallero) - Tuesday, 11 February 2020, 15:24 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 11 February 2020, 15:38 GMT
Opened by Pellegrino Prevete (tallero) - Tuesday, 11 February 2020, 15:24 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 11 February 2020, 15:38 GMT
|
Details
Description:
Systemd service creates the "docker.sock" file in "/run/docker.sock", while docker wants it in "/var/run/docker.sock". Possible workarounds/fixes are symlinking the first into the second or edit "ExecStart" line in "/usr/lib/systemd/system/docker.service" to specify the sock path (if I understood correctly one should replace "fd://" with "unix:///var/run/docker.sock"?). Additional info: * 19.03.5-1 * everything default I believe * do not know of any upstream bug report Steps to reproduce: (every command is root command) - Install docker last year with 'pacman -S docker' - Start it with 'systemctl start docker' - Running 'docker info' will return: [root@hostname run]# docker info Client: Debug Mode: false Server: ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? errors pretty printing info |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Tuesday, 11 February 2020, 15:38 GMT
Reason for closing: Works for me
Tuesday, 11 February 2020, 15:38 GMT
Reason for closing: Works for me
It does work on my system.
The systemd services are the ones upstream created, plus a manual backport of https://github.com/docker/docker-ce/commit/66b48fb029f67e7fe452bca272d6cffce805b707