Hey @llap, I finally found some time to work on this a bit. I managed reproduce the issue on my intel NUC with a Quectel EC20 (it should use the same modemManager plugin as far as I can tell). I used your gists to create a test project and sure enough it will kill the GSM modem everytime the container starts. One thing I do note however, is that this example you have posted does not explicitly disable the
udevadm trigger in the
entry.sh. In any case, I have created this project https://github.com/shaunmulligan/gsmTest
In the master branch I have adapted the project to use the official docker base images. With this adaption, I have been unable to get the modem to ever disconnect, both via multiple app restart, updates, etc. This version however has some obvious differences to your example:
- it doesn’t have systemd init system anymore (this might be problematic to your code, depending on if you use systemd services or not.
- I had to add
ENV DEBIAN_FRONTEND noninteractive as base debian images don’t add that.
- the image is slightly bigger than the resin based one, with a final build size of 797.54 MB
I will continue looking into getting a solid working example with the
resin/intel-nuc-debian base image and follow up here.