3min chapter

The Unhandled Exception Podcast cover image

Docker Demystified - with (me) Dan Clarke

The Unhandled Exception Podcast

CHAPTER

Docker Build Contexts and Caching

When you run Docker build, you specify a path, which is normally just the current directory. It will then copy all of the files from that directory into what's called a Docker builds context. So it's in a way is kind of invisible to you that it's doing that it feels like you're just copying it from your host machine. The reason it does this is because the build might not always be happening on the same machine. You can also create a Docker ignore file to tell Docker build not to copy certain files or directories into your Dockerbuild context.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode