Update host_integration.md

Typically, when you run an image from the command line, you would use "-d" for "detached mode", and when that appears to work, someone might paste the working command line into "ExecStart", which would then mysteriously fail because ExecStart expects a foreground process.
This commit is contained in:
David M. Karr (fullname at gmail.com) 2016-12-28 09:26:47 -08:00 committed by GitHub
parent b72b9d3ba5
commit 7dd8315e4c
1 changed files with 3 additions and 2 deletions

View File

@ -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`),
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
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]
...
@ -94,4 +95,4 @@ To start using the service, reload systemd and start the service:
To enable the service at system startup, execute:
systemctl enable docker-redis_server.service
systemctl enable docker-redis_server.service