From the course: Docker: Build and Optimize Docker Images

Unlock this course with a free trial

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

Challenge: Finding and building images

Challenge: Finding and building images - Docker Tutorial

From the course: Docker: Build and Optimize Docker Images

Challenge: Finding and building images

(upbeat music) - [Narrator] It's time for your first challenge. In this challenge, you'll practice finding and building images, reinforcing basic commands and concepts. Before you get started, you should have the project open in VS code so you can use the terminal VS code. The path in the terminal should be set to the root folder of our project. so you can use the current folder as the build context, because that's where the docker file is. Here, your challenge tasks, find the latest tag version of the official node alpine image. Remember, we're already using node alpine 3.20, so look for a newer version. Copy the image name and version from the poll command instructions for the latest version. Then update the docker file with the new image version. And finally, run the docker build command and tag the image node app. If you want to go one step further, run the web app using the docker run command with the port mapping on port 3000 in the container, and port 3000 on the host. That's…

Contents