Update docker-openvpn@.service (docker.socket)

Since version 1.12, Docker removed `docker.socket` <https://docs.docker.com/release-notes/docker-engine/>

The problem was already present on RPM systems (e.g. RHEL, Fedora, CentOS), and now also seems to affect Debian 9 (Stretch).

This change replaces `docker.socket` by `docker.service`.

It solves this problem:

```
> systemctl start docker-openvpn@.service
Failed to start docker-openvpn@.service: Unit docker.socket not found.
```

Related issues:

 - <https://github.com/kylemanna/docker-openvpn/issues/280>
 - <https://github.com/kylemanna/docker-openvpn/pull/286>
This commit is contained in:
Benoit V 2018-11-08 11:14:35 +01:00 committed by Benoit Vallee
parent 387d39e5d7
commit bab729e2e4

View File

@ -33,8 +33,8 @@
[Unit] [Unit]
Description=OpenVPN Docker Container Description=OpenVPN Docker Container
Documentation=https://github.com/kylemanna/docker-openvpn Documentation=https://github.com/kylemanna/docker-openvpn
After=network.target docker.socket After=network.target docker.service
Requires=docker.socket Requires=docker.service
[Service] [Service]
RestartSec=10 RestartSec=10