Skip to content

Instantly share code, notes, and snippets.

View demoulin's full-sized avatar

Marco de Moulin demoulin

View GitHub Profile
@demoulin
demoulin / docker-ssh
Last active June 30, 2016 09:02 — forked from albertmatyi/docker-ssh
Added check for running dockers in loop
#!/bin/bash
# docker id might be given as a parameter
DID=${1}
if [[ ! ${DID} ]]; then
# get last running docker ID when there is parameter argument
DID=$(docker ps -q -l -f status=running)
fi
if [[ ${DID} ]]; then