scenario requirements
A Container runs a nginx control service for reading and writing nginx configuration files
B Container runs a nginx service based on
question
now the question arises: how does Container A restart the nginx service of Container B?
I use volumes to connect the key files of the two containers. Container A needs to restart container B"s nginx service after changing the nginx configuration file, but this nginx reload
command cannot be communicated to container B. I"ve thought of several solutions before.
scenario 1: integrate the two services
but after checking for a long time, it is found that alpine does not have a locale and the program cannot be run.
scenario 2: send instructions
I don"t know what to do