Bug 1121977 - /var/run/docker.sock group is not docker
Summary: /var/run/docker.sock group is not docker
Status: CLOSED DUPLICATE of bug 1119282
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 20
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-07-22 09:16 UTC by Yajo
Modified: 2014-07-23 00:56 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-07-23 00:56:17 UTC
Type: Bug

Attachments (Terms of Use)

Description Yajo 2014-07-22 09:16:39 UTC
Description of problem:
A user in docker group cannot use docker.

Version-Release number of selected component (if applicable):

How reproducible:
After install.

Steps to Reproduce:
1. sudo yum -y install docker-io
2. sudo usermod -aG docker $YOUR_USER
3. Log out and in again.
4. sudo systemctl start docker
5. docker pull fedora

Actual results:
2014/07/22 11:10:02 Post http:///var/run/docker.sock/images/create?fromImage=fedora&tag=: dial unix /var/run/docker.sock: permission denied

Expected results:
Should pull the fedora image.

Additional info:
Official docs (https://docs.docker.com/installation/fedora/#granting-rights-to-users-to-use-docker) say:

> Adding users to the docker group is not necessary for Docker versions 1.0 and above.

So maybe I am trying to solve a problem in the wrong direction, but:

$ grep SocketGroup /lib/systemd/system/docker.socket

So, I think Fedora stills wants that. However, socket group is root instead of docker:

$ ls -l /var/run/docker.sock 
srw-rw----. 1 root root 0 jul 22 11:08 /var/run/docker.sock

sudo chgrp docker /var/run/docker.sock

Comment 1 Daniel Walsh 2014-07-22 17:36:55 UTC
This is a bug in ssytemd

Comment 2 Daniel Walsh 2014-07-22 17:37:22 UTC
socket activation should assign the docker group to the docker socket.

Comment 3 Zbigniew Jędrzejewski-Szmek 2014-07-23 00:56:17 UTC
(In reply to Daniel Walsh from comment #1)
> This is a bug in ssytemd
No, not really, but we can help :)

*** This bug has been marked as a duplicate of bug 1119282 ***

Note You need to log in before you can comment on or make changes to this bug.