mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-30 06:52:03 +01:00
Merge pull request #760 from philips/docker-socket-permissions
app-emulation/docker: make the docker socket protected
This commit is contained in:
commit
596aaaed9f
@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Docker Application Container Engine
|
Description=Docker Application Container Engine
|
||||||
Documentation=http://docs.docker.io
|
Documentation=http://docs.docker.io
|
||||||
|
Requires=docker.socket
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment="TMPDIR=/var/tmp/"
|
Environment="TMPDIR=/var/tmp/"
|
||||||
|
|||||||
@ -2,6 +2,9 @@
|
|||||||
Description=Docker Socket for the API
|
Description=Docker Socket for the API
|
||||||
|
|
||||||
[Socket]
|
[Socket]
|
||||||
|
SocketMode=0660
|
||||||
|
SocketUser=docker
|
||||||
|
SocketGroup=docker
|
||||||
ListenStream=/var/run/docker.sock
|
ListenStream=/var/run/docker.sock
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user