I have a system setup in which I setup and configure a raspberrypi with some custom scripts. But in order to avoid having to setup a new box "every time" I need to test the overall system, I though about using docker to create an image of the base raspbian and test it locally on my machine (mac).
So, I did:
1- Downloaded 2018-11-13-raspbian-stretch-lite.img
2- Created 2018-11-13-raspbian-stretch-lite.tar.gz
3- Created Dockerfile:
ADD ./2018-11-13-raspbian-stretch-lite.tar.gz /
4- Ran: docker build -t myproject .
5- Ran: docker run -it myproject bash
After running, apparently all is well. BUT: although in my system, the file /proc/cpuinfo has Serial Number, when I run it with docker as described, /proc/cpuinfo does not contain Serial Number.
What am I missing? Any ideas? If /proc/cpuinfo does not always contain the serial number, where else can it be depending on the image?
Thank you for any pointers