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
Documentation updated to make it clear that the visibility of both a local and base image in `docker images` and Portainer depends on the version of docker-compose. Modern docker-compose only shows the local image so only a single "prune" is needed when a local image is rebuilt atop a newly-updated base image from DockerHub.
Affects documentation for Blynk Server, Mosquitto, NextCloud, Node-RED, Telegraf and Zigbee2MQTT. Prometheus documentation already updated in [PR487](SensorsIot#487).
Signed-off-by: Phill Kelley <[email protected]>
Copy file name to clipboardExpand all lines: docs/Containers/Blynk_server.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ The remaining instructions in the *Dockerfile* customise the ***base image*** to
115
115
116
116
The ***local image*** is instantiated to become your running container.
117
117
118
-
When you run the `docker images` command after Blynk Server has been built, you will see two rows that are relevant:
118
+
When you run the `docker images` command after Blynk Server has been built, you *may* see two rows that are relevant:
119
119
120
120
```bash
121
121
$ docker images
@@ -127,7 +127,9 @@ ubuntu latest 897590a6c564 7 days ago 49.8MB
127
127
*`ubuntu ` is the ***base image***; and
128
128
*`iotstack_blynk_server ` is the ***local image***.
129
129
130
-
You will see the same pattern in *Portainer*, which reports the ***base image*** as "unused". You should not remove the ***base*** image, even though it appears to be unused.
130
+
You *may* see the same pattern in *Portainer*, which reports the ***base image*** as "unused". You should not remove the ***base*** image, even though it appears to be unused.
131
+
132
+
> Whether you see one or two rows depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
131
133
132
134
## <aname="logging"> Logging </a>
133
135
@@ -216,6 +218,8 @@ At the time of writing, version 0.41.16 was the most up-to-date. Suppose that ve
216
218
$ docker system prune -f
217
219
```
218
220
221
+
The second `prune` will only be needed if there is an old *base image* and that, in turn, depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
222
+
219
223
## <aname="usingBlynkServer"> Using Blynk Server </a>
220
224
221
225
See the [References](#references) for documentation links.
You will see the same pattern in Portainer, which reports the *base image* as "unused". You should not remove the *base* image, even though it appears to be unused.
143
+
You *may* see the same pattern in Portainer, which reports the *base image* as "unused". You should not remove the *base* image, even though it appears to be unused.
144
+
145
+
> Whether you see one or two rows depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
Your existing Mosquitto container continues to run while the rebuild proceeds. Once the freshly-built *local image* is ready, the `up` tells `docker-compose` to do a new-for-old swap. There is barely any downtime for your MQTT broker service.
634
636
635
-
The `prune` is the simplest way of cleaning up. The first call removes the old *local image*. The second call cleans up the old *base image*.
637
+
The `prune` is the simplest way of cleaning up. The first call removes the old *local image*. The second call cleans up the old *base image*. Whether an old *base image* exists depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
636
638
637
639
### <aname="versionPinning"> Mosquitto version pinning </a>
Copy file name to clipboardExpand all lines: docs/Containers/NextCloud.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -288,7 +288,7 @@ $ docker system prune
288
288
$ docker system prune
289
289
```
290
290
291
-
The first "prune" removes the old *local* image, the second removes the old *base* image.
291
+
The first "prune" removes the old *local* image, the second removes the old *base* image. Whether an old *base image* exists depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
You should not remove the *base* image, even though it appears to be unused.
135
135
136
+
> Whether you see one or two rows depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
### <aname="nodeRedEncryptionKey"> Setting an encryption key for your credentials </a>
@@ -858,7 +860,8 @@ Breaking it down into parts:
858
860
859
861
Your existing Node-RED container continues to run while the rebuild proceeds. Once the freshly-built *local image* is ready, the `up` tells `docker-compose` to do a new-for-old swap. There is barely any downtime for your Node-RED service.
860
862
861
-
The `prune` is the simplest way of cleaning up old images. Sometimes you need to run this twice, the first time to clean up the old local image, the second time for the old base image.
863
+
The `prune` is the simplest way of cleaning up old images. Sometimes you need to run this twice, the first time to clean up the old local image, the second time for the old base image. Whether an old base image exists depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
Copy file name to clipboardExpand all lines: docs/Containers/Telegraf.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ The remaining instructions in the *Dockerfile* customise the ***base image*** to
118
118
119
119
The ***local image*** is instantiated to become your running container.
120
120
121
-
When you run the `docker images` command after Telegraf has been built, you will see two rows for Telegraf:
121
+
When you run the `docker images` command after Telegraf has been built, you *may* see two rows for Telegraf:
122
122
123
123
```bash
124
124
$ docker images
@@ -130,7 +130,9 @@ telegraf latest a721ac170fad 3 days ago 273MB
130
130
*`telegraf ` is the ***base image***; and
131
131
*`iotstack_telegraf ` is the ***local image***.
132
132
133
-
You will see the same pattern in *Portainer*, which reports the ***base image*** as "unused". You should not remove the ***base*** image, even though it appears to be unused.
133
+
You *may* see the same pattern in *Portainer*, which reports the ***base image*** as "unused". You should not remove the ***base*** image, even though it appears to be unused.
134
+
135
+
> Whether you see one or two rows depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
Your existing Telegraf container continues to run while the rebuild proceeds. Once the freshly-built ***local image*** is ready, the `up` tells `docker-compose` to do a new-for-old swap. There is barely any downtime for your service.
333
335
334
-
The `prune` is the simplest way of cleaning up. The first call removes the old ***local image***. The second call cleans up the old ***base image***.
336
+
The `prune` is the simplest way of cleaning up. The first call removes the old ***local image***. The second call cleans up the old ***base image***. Whether an old ***base image*** exists depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
335
337
336
338
### <aname="versionPinning"> Telegraf version pinning </a>
Copy file name to clipboardExpand all lines: docs/Containers/Zigbee2MQTT.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,4 +259,4 @@ $ docker system prune
259
259
260
260
Note:
261
261
262
-
* Sometimes it is necessary to repeat the `docker system prune` command.
262
+
* Sometimes it is necessary to repeat the `docker system prune` command but it depends on the version of `docker-compose` you are using and how your version of `docker-compose` builds local images.
0 commit comments