mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
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:
parent
e55a07c763
commit
2e984c4c93
@ -70,7 +70,7 @@ After=docker.service
|
|||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=3
|
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
|
ExecStop=/usr/bin/docker stop -t 2 home-assistant-%i
|
||||||
ExecStopPost=/usr/bin/docker rm -f home-assistant-%i
|
ExecStopPost=/usr/bin/docker rm -f home-assistant-%i
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user