I would like to know if I can use this Docker setup to simulate a Raspberry Pi 3 device.
Currently, I am trying it and have executed the following command to enable the ARM architecture:
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
However, one of my services (PostgreSQL) is failing with the following error:
2024-11-16 21:53:46.591 GMT [1] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.auto.conf"
postgres: could not find the database system
Expected to find it in the directory "/var/lib/postgresql/data",
but could not open file "/var/lib/postgresql/data/global/pg_control": No such file or directory
PostgreSQL Database directory appears to contain a database; Skipping initialization
This works perfectly on a real Raspberry Pi. When I change the device type (environment variable) to raspberrypi3, I encounter an authentication error with the registry where the image is hosted.
I would like to know:
Should I create a new fleet with the raspberrypi3 device type to resolve this?
If not, am I configuring the simulation correctly with Docker?
What could be causing the error with PostgreSQL in this scenario?
I hope this explanation is clear.
Hello!
I would like to know if I can use this Docker setup to simulate a Raspberry Pi 3 device.
Currently, I am trying it and have executed the following command to enable the ARM architecture:
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
However, one of my services (PostgreSQL) is failing with the following error:
2024-11-16 21:53:46.591 GMT [1] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.auto.conf" postgres: could not find the database system Expected to find it in the directory "/var/lib/postgresql/data", but could not open file "/var/lib/postgresql/data/global/pg_control": No such file or directory
PostgreSQL Database directory appears to contain a database; Skipping initialization
This works perfectly on a real Raspberry Pi. When I change the device type (environment variable) to raspberrypi3, I encounter an authentication error with the registry where the image is hosted.
I would like to know:
Should I create a new fleet with the raspberrypi3 device type to resolve this? If not, am I configuring the simulation correctly with Docker? What could be causing the error with PostgreSQL in this scenario? I hope this explanation is clear.
Greetings, Matias