Skip to content

Instantly share code, notes, and snippets.

View ChrisRut's full-sized avatar

Chris Rutter ChrisRut

View GitHub Profile
@ChrisRut
ChrisRut / .bashrc
Created October 20, 2015 20:21 — forked from miracle2k/.bashrc
Convert an existing docker container into a "docker run" command line
# Convert an existing docker container into a "docker run" command line.
#
# This is useful when trying to debug containers that have been created
# by orchestration tools.
#
# Install jq: stedolan.github.io/jq/
function format_run() {
cid=$1