Docker Community Forums

Share and learn in the Docker community.

How to docker exec reload nginx from one container to another?

Hello.

  • one_container - nginx
  • two_container - nodejs

How to reload nginx from two_container nodejs?

var exec = require('child_process').exec;
exec('service nginx reload');