From the course: Docker for Developers: Create and Manage Docker Containers
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Solution: Building a custom image - Docker Tutorial
From the course: Docker for Developers: Create and Manage Docker Containers
Solution: Building a custom image
(upbeat music) - [Instructor] For this challenge, you were tasked with building a custom image and working with an image repository using CLI commands. Let's walk through how I'd solve this challenge. First, I asked you to build the Docker Demo image and tag it as your username, Docker Demo, version two. Open a terminal and type Docker Build, the T-flag, your username, Docker Demo, V-two, and a period for the context. You could also use the Docker Tag command to tag the image, but I asked you to specifically build and tag the image. Next, I asked you to push the image you just built to your repository you created in this chapter on Docker Hub. For this, you would use the Docker Push command, followed by the image tag we just created. Then I instructed you to remove version one of the image to remove it locally. This is done using the Docker Image RM command, and the name and version of the image. And finally, I said to…
Contents
-
-
-
-
-
(Locked)
Finding and pulling Docker images2m 39s
-
(Locked)
Writing a Dockerfile3m 23s
-
(Locked)
Using the docker build command2m 2s
-
(Locked)
Listing, inspecting, and removing images3m 4s
-
(Locked)
Working with an image repository2m 53s
-
(Locked)
Challenge: Building a custom image1m 4s
-
(Locked)
Solution: Building a custom image1m 38s
-
(Locked)
-
-
-
-
-
-