You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the other hand, this may be a risk you're willing to take.
45
+
46
+
To ensure a successful rollback, you have to shutdown your RPi and backup a
47
+
complete image of its storage device using another machine. This will also
48
+
ensure all databases are saved in a valid state.
49
+
50
+
## Recommended: Update only Docker images
51
+
52
+
When you built the stack using the menu, it created the Docker Compose file
53
+
`docker-compose.yml`. This file uses tag references (e.g. `:latest`) to get the
54
+
image for that tag from hub.docker.com. Thus when Docker is told to pull
55
+
images, it will download and update it's local cache to the newest image. No
56
+
need to do any updates to `docker-compose.yml`.
57
+
58
+
Updating the IOTstack project templates and recreating your
59
+
`docker-compose.yml` isn't usually necessary. Doing so isn't likely to provide
60
+
much benefits, and may actually break something. A full update is only
61
+
recommended when there is a new feature or change you need.
62
+
63
+
!!! note "Recommended update procedure"
64
+
65
+
1. Shutdown your RPi, remove its storage medium and backup a full image
66
+
of the storage to another machine. Reinstall your storage and power up
67
+
your RPi. To skip this step may cause a long downtime as you debug the
68
+
problem.
69
+
2. Get latest images from the web:
70
+
```bash
71
+
docker-compose pull
72
+
```
73
+
3. Rebuild localy created images based on new parent images:
74
+
```bash
75
+
docker-compose build --pull --no-cache
76
+
```
77
+
Note: this may not do anything, depending on your selected services.
78
+
4. Update(recreate) containers to use new images:
79
+
```bash
80
+
docker-compose up --build -d
81
+
```
82
+
83
+
If a service fails to start after it's updated, especially if you are updating
84
+
frequently, wait for a few hours and repeat the update procedure. Sometimes
85
+
there are bad releases published to hub.docker.com, but they are usually fixed
86
+
in under half a day. Of course you are always welcome to report the problem to
87
+
our [Discord](https://discord.gg/ZpKHnks) server. Usually someone else has
88
+
encountered the same problem and reported the fix.
89
+
90
+
## Full update
91
+
3
92
Periodically updates are made to project which include new or modified container template, changes to backups or additional features. As these are released your local copy of this project will become out of date. This section deals with how to bring your project to the latest published state.
4
93
5
94
## Quick instructions
6
95
7
-
1. backup your current settings: `cp docker-compose.yml docker-compose.yml.bak`
8
-
2. check `git status` for any local changes you may have made to project files. Save and preserve your changes by doing a commit: `git commit -a -m "local customization"`. Or revert them using: `git checkout -- path/to/changed_file`.
1. shutdown your RPi, remove its storage medium and do a full image backup of
97
+
it to another machine. Reinstall your storage and power up your RPi.
98
+
2. backup your current settings: `cp docker-compose.yml docker-compose.yml.bak`
99
+
3. check `git status` for any local changes you may have made to project files, ignore any reported "Untracked files". Save and preserve your changes by doing a commit: `git commit -a -m "local customization"`. Or revert them using: `git checkout -- path/to/changed_file`.
0 commit comments