windows start homeassistant docker container

Mirroring is really big. .

homeassistant/home-assistant   latest              c2613a55aacc        42 hours ago        1.33GB

 

Official website said adding --net = host and host shared network can not access the host port in the container, but away from the docker system isolation in mind, each parameter can also be added to the start

docker run --init -d --name="hm" -p 8123:8123 -e TZ="Asia/Shanghai" -v /d/homeassistant:/config homeassistant/home-assistant:latest

Start Success:

f89d2ab2fcfa        homeassistant/home-assistant:latest   "/init"             7 minutes ago       Up 7 minutes        0.0.0.0:8123->8123/tcp   home-assistant

 

Visit: http: // localhost: 8123

 

 

Get

Guess you like

Origin www.cnblogs.com/zhzhlong/p/12585488.html