[Unit] Description=Docker Socket for the API PartOf=docker.service [Socket] ListenStream=/var/run/docker.sock SocketMode=0660 # TODO: Get rid of workaround below after adopting systemd 214+ by oS Factory # Socket(User|Group) are available as of systemd 214+ #SocketUser=root #SocketGroup=docker # Fix owner manually ExecStartPost=/usr/bin/chown root:docker /var/run/docker.sock [Install] WantedBy=sockets.target