From the course: Learning Docker

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Create a Docker container with BuildKit

Create a Docker container with BuildKit - Docker Tutorial

From the course: Learning Docker

Create a Docker container with BuildKit

- [Instructor] In the last video we used Docker build to build a simple Docker Image. If you see build output that looks like the image provided in the slide then that means that you are using the legacy Docker builder. You'll want to be using BuildKit, Docker's improved image builder, instead. This builder provides improved performance and additional helpful features over the legacy builder that ships with Docker. Let's go into the terminal and see it in action. Using BuildKit is easy. All you have to do is run docker buildx build and then provide the same options that you provided to Docker build. While Docker build uses BuildKit underneath the hood for versions of Docker Desktop published after 2023 or so, Docker Buildx gives you more options with what you can do with images that it provides. I'll provide a link at the end of the video that you can check out to learn more about this. So going back to docker buildx build, in the last video we used -t our-first-image and a period…

Contents