Skip to content

Instantly share code, notes, and snippets.

@tyagiakhilesh
Created December 20, 2017 07:04
Show Gist options
  • Save tyagiakhilesh/40949dde90f45f165c092eb027a49261 to your computer and use it in GitHub Desktop.
Save tyagiakhilesh/40949dde90f45f165c092eb027a49261 to your computer and use it in GitHub Desktop.
Docker cheat sheet
//This might come handy when you want to inspect the fs of a dead container
//or want to debug why it was not coming alright.
docker container run -it --rm --entrypoint=/bin/bash <image id>
// To transfer images from one host to another
docker save <image id> > /tmp/image.tar
docker load < /tmp/image.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment