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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Exploring the Docker CLI3m 1s
-
(Locked)
Create a Docker container6m 58s
-
(Locked)
Create a Docker container: The short way2m 9s
-
(Locked)
Create a Docker container from Dockerfiles, part 12m 46s
-
(Locked)
Create a Docker container from Dockerfiles, part 22m 37s
-
(Locked)
Create a Docker container with BuildKit2m 54s
-
(Locked)
Interact with your container5m 9s
-
(Locked)
Stopping and removing the container5m 41s
-
(Locked)
Binding ports to your container4m 36s
-
(Locked)
Saving data from containers5m 39s
-
(Locked)
Introducing the Docker Hub1m 23s
-
(Locked)
Pushing images to the Docker registry3m 13s
-
(Locked)
Checking your images in Docker Hub2m 44s
-
(Locked)
Beyond Docker Hub: Other popular container registries2m 17s
-
(Locked)
Challenge: Starting NGINX1m 16s
-
(Locked)
Solution: Starting NGINX5m 18s
-
-
-
-