Skip to content

Instantly share code, notes, and snippets.

@wsargent
Last active May 27, 2026 15:46
Show Gist options
  • Select an option

  • Save wsargent/7049221 to your computer and use it in GitHub Desktop.

Select an option

Save wsargent/7049221 to your computer and use it in GitHub Desktop.
Docker cheat sheet
@lhazlewood

Copy link
Copy Markdown

Will, this is hugely beneficial. Thanks so much for writing/sharing this!

@JohnFiedler

Copy link
Copy Markdown

Awesome work on this! We'll (RelateIQ) update the images soon to the public registry. Do you care if we add this to the readme to our repo with credit to you?

@wsargent

Copy link
Copy Markdown
Author

@JohnFiedler No, please do.

@alpacaaa

Copy link
Copy Markdown

Awesome thanks!

@cseeger

cseeger commented Nov 20, 2013

Copy link
Copy Markdown

ROCK ON!

@maxbeatty

Copy link
Copy Markdown

Thank you for putting this together!

@shykes

shykes commented Nov 22, 2013

Copy link
Copy Markdown

This is great. Thanks guys for this, I will print one out for myself :)

Would you be open to contributing some of this to the official Docker docs?

@shykes

shykes commented Nov 22, 2013

Copy link
Copy Markdown

@tlockney

Copy link
Copy Markdown

@wsargent I was about to ask why you removed the sections covering running a registry, Shipyard, tips, etc.... until I noticed they're all in the blog post. :~)

Both are excellent resources, btw. Thanks for sharing all this! It covered a few bits I still hadn't found time to poke at. Now I'm looking forward to your next post: "using Docker with the Typesafe Stack." :D

@lucapette

Copy link
Copy Markdown

very nicely written. Thank you. It's that good that it should be part of the official doc

@vamshis

vamshis commented Nov 29, 2013

Copy link
Copy Markdown

thanks. Its simple to understand. Cleared a lot of doubts :)

@mindreframer

Copy link
Copy Markdown

thanks, that is one hell of cheat sheet! Rock on!

@nacyot

nacyot commented Jan 9, 2014

Copy link
Copy Markdown

@wsargent Could I translate this gist in Korean?

@wsargent

Copy link
Copy Markdown
Author

You can translate it into Korean if you like, absolutely.

ghost commented Feb 10, 2014

Copy link
Copy Markdown

nice! thanks! fantastic! i love you!

@labianchin

Copy link
Copy Markdown

Awesome! Very useful.

@sublimino

Copy link
Copy Markdown

Docker docs URL structure has changed from http://docs.docker.io/en/latest/ to http://docs.docker.io/reference/

@wsargent

Copy link
Copy Markdown
Author

@sublimino fixed, thx.

@nanoxd

nanoxd commented May 24, 2014

Copy link
Copy Markdown

brew tap phinze/homebrew-cask should now be brew tap caskroom/homebrew-cask

@wsargent

Copy link
Copy Markdown
Author

@nanoxd fixed!

@saulshanabrook

Copy link
Copy Markdown

The dockerfile tutorial links are broken, 404 now.

@saulshanabrook

Copy link
Copy Markdown

@typehorror

Copy link
Copy Markdown

To retrieve the ip address

docker inspect -f '{{ .NetworkSettings.IPAddress }}' <container_name>

@wsargent

Copy link
Copy Markdown
Author

@saulshanabrook I do wish that they would stop changing their URLs around without even a redirect...

@wsargent

Copy link
Copy Markdown
Author

@Debrice udpated, thx.

@geshan

geshan commented Jun 28, 2014

Copy link
Copy Markdown

how do I assign a static IP to a docker container??

@aronr

aronr commented Jul 19, 2014

Copy link
Copy Markdown

@geshan One possible way to assign a static IP address to a Docker container, might be via @jpetazzo's pipework shell script.

See the example given by Lukas Pustina, under the subhead "Pipework – More Networks for your Containers" in Docker Networking Made Simple or 3 Ways to Connect LXC Containers.

@psav

psav commented Jul 24, 2014

Copy link
Copy Markdown

Thanks for this! very helpful indeed!

@noelyahan

Copy link
Copy Markdown

Awesome thanks a lot !

@tatjana-predojev

Copy link
Copy Markdown

Thank you this is super useful!

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