I have 2 containers: c1 and c2. How can I run a script in c1 from c2? Thank you in advance!
Asked
Active
Viewed 94 times
0
-
The usual way for one container to cause another container to do something is with a network request, typically HTTP. Check this thread: https://forums.docker.com/t/execute-command-from-a-container-to-another-container. – Nishant Jul 21 '20 at 06:25
-
You can't directly run commands in one container from another without a lot of workarounds. The posts I link to describe some of those, with differing degrees of complexity and security risks. – David Maze Jul 21 '20 at 10:08