Joakim Sørensen 442a11b66d
Update getting-started (#16039)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-02-11 21:29:51 +01:00

926 B

{% tabbed_block %}

  • title: Install content: |

    docker run --init -d \
      --name homeassistant \
      --restart=unless-stopped \
      -v /etc/localtime:/etc/localtime:ro \
      -v /PATH_TO_YOUR_CONFIG:/config \
      --network=host \
      {{ include.image }}
    
  • title: Update content: |

    # if this returns "Image is up to date" then you can stop here
    docker pull {{ include.image }}
    
    # stop the running container
    docker stop homeassistant
    
    # remove it from Docker's list of containers
    docker rm homeassistant
    
    # finally, start a new one
    docker run --init -d \
      --name homeassistant \
      --restart=unless-stopped \
      -v /PATH_TO_YOUR_CONFIG:/config \
      -v /etc/localtime:/etc/localtime:ro \
      --network=host \
      {{ include.image }}
    

{% endtabbed_block %}