mirror of https://github.com/docker/docs.git
Merge pull request #992 from davidmichaelkarr/patch-1
Update host_integration.md
This commit is contained in:
commit
197e1e8553
|
|
@ -78,7 +78,8 @@ in the `/etc/systemd/system` directory, e.g.
|
||||||
If you need to pass options to the redis container (such as `--env`),
|
If you need to pass options to the redis container (such as `--env`),
|
||||||
then you'll need to use `docker run` rather than `docker start`. This will
|
then you'll need to use `docker run` rather than `docker start`. This will
|
||||||
create a new container every time the service is started, which will be stopped
|
create a new container every time the service is started, which will be stopped
|
||||||
and removed when the service is stopped.
|
and removed when the service is stopped. Make sure you don't use "`-d`" for
|
||||||
|
"detached mode". The command run from "`ExecStart`" needs to run in the foreground.
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
...
|
...
|
||||||
|
|
@ -94,4 +95,4 @@ To start using the service, reload systemd and start the service:
|
||||||
|
|
||||||
To enable the service at system startup, execute:
|
To enable the service at system startup, execute:
|
||||||
|
|
||||||
systemctl enable docker-redis_server.service
|
systemctl enable docker-redis_server.service
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue