Docker Best Practices 19 Tips, tricks and techniques

Season: 3 Episode: 73 Published: 3rd July 2020

Peter Fisher

Docker is a fantastic tool to have in your web development tool box.

Here are some of the 19 Docker tips and techniques that I wish I knew when I started using Docker.

  • Use Docker Compose even if you have one container
  • Learn the difference between a bind mount and a data volume
  • Use the —rm flag for creating one off scripts in a container
  • Use a Docker ignore file
  • Use multi stage builds
  • Use Docker system prune to remove dead and unused Docker objects
  • Use Dive to see what can be removed
  • Don’t carry build tools in production
  • Learn the difference between ARG and ENV

My current live coding schedule http://twitch.tv/howtocodewell

Get my newsletter https://email.howtocodewell.net/signup My current live coding schedule

  • Tuesdays 07:00
  • Thursdays 21:00
  • Sundays 14:30 All times are BST

In todays show I mentioned:

Folding At Home

We have our own Folding At Home Team that is currently working to fight Covid-19 and other diseases. Team number: 236997

Join the How To Code Well Folding At Home Team


Support the channel and get early access to episodes and Pro user access to our Discord Server

Watch the podcast

How To Code Well Programming Courses

Professional programming courses for web developers

How To Code Well Merch

Recommended Programming Books

Transcript

Transcript coming soon