Skip to content

Instantly share code, notes, and snippets.

@embs
Created June 23, 2017 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save embs/934abd335b489b44f72865c526d26bc6 to your computer and use it in GitHub Desktop.
Save embs/934abd335b489b44f72865c526d26bc6 to your computer and use it in GitHub Desktop.
Adventures In Containers Land

Start with Docker

I've started trying stuff within my hosting machine so I'd more confidently build an image later. It didn't pay off. Just type inside the Dockerfile instead of the terminal (shell).

Give apprentice steps

Nevermind the state of the art when you're starting off:

  • Maximize the number of layers when you're playing around with stuff so you benefit the most of cached layers -- no need to run each command within a giant RUN directive

And then

  • Optimize (e.g.: wrap up everything within a single RUN) when you finished tweaking
@embs
Copy link
Author

embs commented Jun 23, 2017

First lessons could probably be generalized to anything else:

  • Commit to what you're learning (don't be afraid)
  • Take small steps

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