Skip to content
Snippets Groups Projects
Verified Commit cd136fa3 authored by David Beniamine's avatar David Beniamine
Browse files

Script to run only in containers

parent 38f26fe1
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
docker ps --format {{.Names}} | while read name; do
echo "Container: $name"
docker exec $name $@
done
...@@ -2,8 +2,4 @@ ...@@ -2,8 +2,4 @@
echo "Host" echo "Host"
$@ $@
PIDS="" bash $(dirname $0)/run_in_containers.sh $@
docker ps --format {{.Names}} | while read name; do
echo "Container: $name"
docker exec $name $@
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment