I am trying to execute a script during container startup.
For a normal linux machine, if i have script in /etc/rc.local script will be executed when there is reboot
I am trying to do the same thing, when building Docker image. I override the /etc/rc.local file with new content, then I perform
sudo docker run -d <image id>
I was expecting /etc/rc.local would be executed, however nothing happens.
Am I doing it in the wrong place?