Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
cmd () {
CMD="$1"
DOCKER_CMD='docker run --rm --volumes-from sub1 ubuntu:14.04 bash -c "sub2"'
eval `echo $DOCKER_CMD | sed "s/sub1/${CONT_NAME}/" | sed "s/sub2/${CMD}/"`
}
cmd "ls -l"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment