Package: docker.io
Version: 1.0.0~dfsg1-1
Severity: wishlist

Enabling socket activation should prevent races when starting up docker
containers at boot time, such as "is the docker daemon running?".

I have the following .socket file and it seems to be working. The one
provided upstream does not work because it does not set the correct
permissions:

[Unit]
Description=Docker Socket for the API

[Socket]
ListenStream=/var/run/docker.sock
SocketMode=0660
# These are only available in systemd 214+
#SocketUser=root
#SocketGroup=docker
# So we chown manually
ExecStartPost=/bin/chown root:docker /var/run/docker.sock

[Install]
WantedBy=sockets.target

The service file must be modified to add a -H fd:// before $DOCKER_OPTS


Thanks for maintaining docker!

Saludos


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages docker.io depends on:
ii  adduser              3.113+nmu3
ii  init-system-helpers  1.19
ii  iptables             1.4.21-2
ii  libapparmor1         2.8.0-5.1+b1
ii  libc6                2.19-3
ii  libdevmapper1.02.1   2:1.02.85-2
ii  libsqlite3-0         3.8.5-2
ii  perl                 5.18.2-4

Versions of packages docker.io recommends:
ii  aufs-tools       1:3.2+20130722-1.1
ii  ca-certificates  20140325
ii  cgroupfs-mount   1.0
ii  git              1:2.0.0-2
ii  xz-utils         5.1.1alpha+20120614-2

Versions of packages docker.io suggests:
pn  btrfs-tools  <none>
ii  debootstrap  1.0.60
ii  lxc          1.0.4-3
pn  rinse        <none>

-- Configuration Files:
/etc/default/docker.io changed [not included]

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to