2024年11月23日星期六 下午3:57:57

Start Docker automatically

5 个月 前
#38266 引用
Start Docker automatically



http://localhost:4999/boards/topic/15671/docker-cli/page/2#28468

https://blog.matterxiaomi.com/blog/raspberry-pi-part4/
0
5 个月 前
#38267 引用
before

docker inspect ha



   "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
0
5 个月 前
#38268 引用
docker update --restart=always ha
0
5 个月 前
#38269 引用
RestartPolicy

   "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            }


detail

docker inspect ha




 "HostConfig": {
            "Binds": [
                "/home/homeassistant20221103:/config"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "host",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
0