Docker Build: How to Build Docker Image from Dockerfile

preview_player
Показать описание
This tutorial demonstrates how to build a Docker Image from Dockerfile in simple 8 steps. The 'docker build' command is at the heart of Docker's image creation process. At the end of this video, you will better understand the Docker build command and how to use it and utilize this knowledge to build more custom Docker images to make your applications portable.

How to build a Docker Image from Dockerfile?

Step 1 - Create a working directory
Step 2 - Select a base image
Step 3 - Create a Dockerfile
Step 4 - Add build instructions to the Dockerfile
Step 5 - Build the image using the Docker build command
Step 6 - Verify the built Docker image
Step 7 - Run the Docker image
Step 8 - Access the application

Well done! You have successfully learned how to build a Docker Image from Dockerfile.

Timecodes:

0:00 Introduction
1:09 Create a working directory
3:01 Select Base Image
3:15 Create a Dockerfile
6:49 Build the image using the Docker build command
8:06 Verify the built Docker image
8:45 Run the Docker image
10:35 Access the application

🍿WATCH NEXT:
Cherry Servers Bare Metal Cloud Solution:
How to Install Ubuntu Server in Minutes:

🔗 KEY LINKS
Follow on Twitter - / cherryservers

#docker #dockertutorial #dockerhub
Рекомендации по теме