April-25th-2018, 10:39 AM
Sorry to again bother you with this topic.
I encountered a strange problem with the memory on the netPi.
I use a program that periodicly saves data to a usb stick by using the runtime privileged /dev/sda1 settings and on start mounting the container on to tmp/mydrive.
If i save to the usb stick the storage space usage percentage in the control panel grows over time and stays even when stopping the container. The storage space usage drops back to the start when removing the container. Meanwhile neither the image size nor the files inside the container checked with # du -a change, except on the mounted device, where the data is saved, which when removed and cleared does not change the storage space percentage.
By running the exact same program on the RPI3 with:
docker run -t -i --privileged -v /dev/sda1:/dev/sda1 imagename
the size does not grow on my system.
Is there some way to see the size of a running or stopped container, like the size displayed by docker ps -s?
I encountered a strange problem with the memory on the netPi.
I use a program that periodicly saves data to a usb stick by using the runtime privileged /dev/sda1 settings and on start mounting the container on to tmp/mydrive.
If i save to the usb stick the storage space usage percentage in the control panel grows over time and stays even when stopping the container. The storage space usage drops back to the start when removing the container. Meanwhile neither the image size nor the files inside the container checked with # du -a change, except on the mounted device, where the data is saved, which when removed and cleared does not change the storage space percentage.
By running the exact same program on the RPI3 with:
docker run -t -i --privileged -v /dev/sda1:/dev/sda1 imagename
the size does not grow on my system.
Is there some way to see the size of a running or stopped container, like the size displayed by docker ps -s?