I found the, for me, easiest way to upgrade a set of Docker containers. The setup is based on docker-compose.yml files and volumes in the same directory. Installing is as simple as creating the docker-compose.yml file and starting it up.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | mqtt: image: toke/mosquitto:latest ports: - 1883:1883 - 9001:9001 volumes: - ./config/mqtt:/mqtt/config - ./log/mqtt:/mqtt/log - ./data/mqtt:/mqtt/data/ home-assistant: image: homeassistant/home-assistant:latest ports: - 8123:8123 volumes: - ./config/home-assistant:/config - /etc/localtime:/etc/localtime:ro |
Create a docker-compose.yml in the directory where you would like to store your container, […]