Skip to content

Instantly share code, notes, and snippets.

Marcos Nils marcosnils

Block or report user

Report or block marcosnils

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
marcosnils / gist:b119d7325c469de5175bc8a2571448c1
Created Apr 12, 2017 — forked from freshjones/gist:b0713263033df8cc9f44
bash script to monitor and do something with docker events
View gist:b119d7325c469de5175bc8a2571448c1
docker events --filter 'event=start' --filter 'event=stop' | while read event
container_id=`echo $event | sed 's/.*Z\ \(.*\):\ .*/\1/'`
echo $container_id
You can’t perform that action at this time.