It is unclear to me how the owner ID of a named volume is set when deploying a new balena application or when purging data.
So I have named volumes where the owner ID is 100, 1000 and 0 (= root).
After purging data I see that the owner ID of the named volume has been changed from 1000 to 100 or 0.
This is a problem as the user (ID = 1000) of my container service can no longer write to the named volume as it has a different owner ID.
An example where the owner ID = 0 (= root)
oot@4d176de:/var/lib/docker/volumes/1284969_node-red-data2# ls -l total 4 drwxr-xr-x 2 root root 4096 Nov 7 07:24 _data
An example where the owner ID = 100
root@4d176de:/var/lib/docker/volumes/1284969_node-red-data# ls -l total 4 drwxr-xr-x 2 100 root 4096 Nov 7 07:24 _data
An example (of another application on another device) where the owner ID = 1000
root@ba7c427:/var/lib/docker/volumes/1481607_node_red_data# ls -l total 4 drwxr-xr-x 5 1000 1000 4096 Nov 7 07:14 _data