1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Adding information about ExecStart configuration for systemsd

Closes #14491

Signed-off-by: Nicolás Hock Isaza <nhocki@gmail.com>
This commit is contained in:
Nicolás Hock Isaza 2015-07-10 15:29:07 -06:00
parent 5bf335d0a2
commit 6b44c05205

View file

@ -85,6 +85,17 @@ setting `OPTIONS`:
You can also set other environment variables in this file, for example, the You can also set other environment variables in this file, for example, the
`HTTP_PROXY` environment variables described below. `HTTP_PROXY` environment variables described below.
To modify the ExecStart configuration, specify an empty configuration followed
by a new configuration as follows:
[Service]
ExecStart=
ExecStart=/usr/bin/docker -d -H fd:// --bip=172.17.42.1/16
If you fail to specify an empty configuration, Docker reports an error such as:
docker.service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.
### HTTP proxy ### HTTP proxy
This example overrides the default `docker.service` file. This example overrides the default `docker.service` file.
@ -127,5 +138,3 @@ to integrate Docker with systemd. For this, simply install the two unit files
(service and socket) from [the github (service and socket) from [the github
repository](https://github.com/docker/docker/tree/master/contrib/init/systemd) repository](https://github.com/docker/docker/tree/master/contrib/init/systemd)
to `/etc/systemd/system`. to `/etc/systemd/system`.