Update systemd.markdown (#7897)

The quotation marks must be left off for the container name. Otherwise you will get the message
```/usr/bin/docker: Error response from daemon: Invalid container name ("home-assistant-pi"), only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed.```
After I removed the quotation marks from my systemd service file, everything worked fine.
This commit is contained in:
Thomas 2018-12-18 22:26:09 +01:00 committed by Fabian Affolter
parent e55a07c763
commit 2e984c4c93

View File

@ -70,7 +70,7 @@ After=docker.service
[Service]
Restart=always
RestartSec=3
ExecStart=/usr/bin/docker run --name="home-assistant-%i" -v /home/%i/.homeassistant/:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant
ExecStart=/usr/bin/docker run --name=home-assistant-%i -v /home/%i/.homeassistant/:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/home-assistant
ExecStop=/usr/bin/docker stop -t 2 home-assistant-%i
ExecStopPost=/usr/bin/docker rm -f home-assistant-%i