So, I have a few dockers. Every now and then I want to run some command on all of them. Doing ‘docker exec’ is tiresome. I found this neat solution with ansible that I thought I should share with you.
To get started, you need to have the “docker.py” script. This script will be used as python script inventory for ansible. So, use the following command and get the script: