Hi all, hope you can help! I’m very new to docker / linux based systems so I apologise in advance if my basic knowledge is a bit flaky!
I’m running docker (latest stable version 18.03) on a mac with OSX 10.13.3. The image I’m setting up is to run on a Raspberry Pi 3 running base image of “resin/rpi-raspbian:stretch”
The problem I’m having is getting services to start in the container on run. I’ve looked into CMD / ENTRYPOINT and tried multiple variations from lots of posts (so I havent just taken the easy route and jumped on here) but cannot get them to start automatically.
I actually need three different services to start when the container runs lighttpd / mysql and a custom service written in house. I have tried stripping it back to just get one of the services to start and then take it from there but I cant even get that to work!
I’ve tried running a start up script from command as well as trying to start the individual services from CMD just to get one going but no luck yet.
If I SSH into the container and manually start the services they run no problem so I’m assuming everything they need to work is in the image its just the method to start it automatically on container run that I’m having an issue with.
I expect I’m either misunderstanding the basics of how docker works or getting the start up routine wrong.
Hope you can help and many thanks in advance!