Docker Community Forums

Share and learn in the Docker community.

How to issue the same command to multiple containers?


(Zzvara) #1

Dear Community,

Is it possible to issue the same command to a set of selected containers at once?
Maybe to copy a specified file to a set of selected containers at once?

I’ve been looking for this on the network, but without success so far. Usually to have the same effect, I use PDSH to parallel command bare metals. How would you do the same with Docker containers?

Thank you in advance!

Zoltán