File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,25 @@ This Go program is a compatibility shim to allow the easy control of docker
44containers via systemd service units.
55
66[ ![ Build Status] ( https://travis-ci.org/mback2k/docker-systemd-shim.svg?branch=master )] ( https://travis-ci.org/mback2k/docker-systemd-shim )
7+
8+ Usage
9+ -----
10+ The following is an example of a systemd.service unit file which uses this shim to control a container:
11+
12+ ```
13+ [Unit]
14+ Description=Docker container: your-container-name
15+ Wants=network.target
16+ After=docker.service
17+ Requires=docker.service
18+
19+ [Service]
20+ Type=notify
21+ ExecStart=/usr/local/sbin/docker-systemd-shim --container=your-container-name
22+ Environment=DOCKER_API_VERSION=1.38
23+
24+ [Install]
25+ WantedBy=docker.service
26+ ```
27+
28+ Replace ` your-container-name ` with the name of the container you want to control with this unit file.
You can’t perform that action at this time.
0 commit comments