app-emulation/docker: sync systemd socket unit with upstream

without PartOf=docker.service, the docker socket gets permanently
unlinked when docker is restarted, resulting in a running docker daemon
but inability to contact it.

see docker commit 053c3557b3198466ecfbe066fefdbab2a78771d5 and
 https://github.com/golang/go/issues/11826 for more details.
This commit is contained in:
Nick Owens 2015-07-22 01:24:28 -07:00
parent 823c03873f
commit d8abae5613
4 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,7 @@ CROS_WORKON_REPO="git://github.com"
if [[ ${PV} == *9999 ]]; then
DOCKER_GITCOMMIT="unknown"
KEYWORDS=""
KEYWORDS="~amd64 ~arm64"
else
CROS_WORKON_COMMIT="786b29d4db80a6175e72b47a794ee044918ba734" # v1.7.1
DOCKER_GITCOMMIT="${CROS_WORKON_COMMIT:0:7}"

View File

@ -1,11 +1,13 @@
[Unit]
Description=Docker Socket for the API
PartOf=docker.service
[Socket]
ListenStream=/var/run/docker.sock
SocketMode=0660
SocketUser=docker
SocketGroup=docker
ListenStream=/var/run/docker.sock
[Install]
WantedBy=sockets.target

View File

@ -1,5 +1,6 @@
[Unit]
Description=Early Docker Socket for the API
PartOf=early-docker.service
[Socket]
ListenStream=/var/run/early-docker.sock