Skip to content

Instantly share code, notes, and snippets.

@akofman
Last active May 9, 2016 07:59
Show Gist options
  • Save akofman/30b40f8b090ede8df687a06538167eab to your computer and use it in GitHub Desktop.
Save akofman/30b40f8b090ede8df687a06538167eab to your computer and use it in GitHub Desktop.
  • Run an interractive shell (ctrl+P ctrl+q to detach):
    docker run -i -t <imageName> /bin/bash

  • Update an image:
    docker commit <containerId> <imageName>

  • Save an image to a tar archive:
    docker save <imageName> > <image.tar>

  • Load an image from a tar archive:
    docker load < <image.tar>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment