Open doctorjei opened 1 month ago
Multiple container export commands
bashdocker ps -a | awk 'NR > 1 { id=$1; gsub(/[:\/]/, "_", $2); print id " " $2 }' | while read -r id name; do
python autocompose.py "$id" > "${name}.yml"
done
What's bashdocker
?
It's really easy to install your package via pip if you want to tell people how, so they don't have to manually clone the repo:
pip install git+https://github.com/Red5d/docker-autocompose.git#egg=autocompose
I just wanted to mention it, since it might make things easier on a lot of folks looking for a "quick and easy" solution!