浏览代码

Change docker socket location to /run/docker.sock

This change resolves the following systemd warning:

```
/usr/lib/systemd/system/docker.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/docker.sock → /run/docker.sock; please update the unit file accordingly.
```

Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Wiktor Kwapisiewicz 6 年之前
父节点
当前提交
8abf26dbfb
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      contrib/init/systemd/docker.socket

+ 3 - 1
contrib/init/systemd/docker.socket

@@ -3,7 +3,9 @@ Description=Docker Socket for the API
 PartOf=docker.service
 
 [Socket]
-ListenStream=/var/run/docker.sock
+# If /var/run is not implemented as a symlink to /run, you may need to
+# specify ListenStream=/var/run/docker.sock instead.
+ListenStream=/run/docker.sock
 SocketMode=0660
 SocketUser=root
 SocketGroup=docker