Thank you for watching this question.
So my question is about best practices for running the script in the docker-compose up directive.
I am currently sharing volumes between the host and container so that script changes are displayed for both the host and the container. Similar to viewing a polling script for changes to a configuration file.
The script must act on the host when changes are made according to predefined rules.
So my question is:
How can I run this script in the docker-compose up directive or even from the docker file for this service, so that whenever the container goes up, the βobserverβ can detect any changes made and write.
The container in question will always work on the debian / ubuntu OS and should be architecture independent, that is, it should also work on ARM.
Thank you in advance
I would also like to know why the question was suppressed only because some people do not understand this.
I want to run the script on the host, not inside the container. I need the host to change its network interface configurations to easily adapt any environment. HOST needs to be changed. I repeat. It should be a user and easily edited on a web interface running inside CONTAINER to adapt to new environments.
I am currently doing this with a script running on a crontab based host. I just want to know the best practices and examples of how to run a script in a HOST from an INSIDE CONTAINER, so deployment can be simple for the installation operator to just run docker build.
thanks
source share