From 5f0f14909d737aa1b984b63a901841aedc51e864 Mon Sep 17 00:00:00 2001 From: Tero Keso <29271631+TeroKeso@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:46:32 +0300 Subject: [PATCH] my_first_image to my-first-image --- docs/dockerimages.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/dockerimages.md b/docs/dockerimages.md index 039ff12..af35d6d 100644 --- a/docs/dockerimages.md +++ b/docs/dockerimages.md @@ -207,10 +207,10 @@ CMD ./hello.sh ### Build your first image Now that our docker file is ready, we will use ***[docker build](https://docs.docker.com/engine/reference/commandline/build/)*** command to build our image. -The following **docker build** command will look for the `Dockerfile` and build as per instructions in the Dockerfile. The (.) specifies where to build and -t flag tags the image with the name "my_first_image". +The following **docker build** command will look for the `Dockerfile` and build as per instructions in the Dockerfile. The (.) specifies where to build and -t flag tags the image with the name "my-first-image". ```bash -docker build -t my_first_image . +docker build -t my-first-image . ``` **Step 5:Run the Docker Container** @@ -321,7 +321,7 @@ When you update your application, fix bugs, implement security updates, or make 1. **Build the Image**: Use the `docker build` command to build the updated Docker image. ``` -docker build -t my_first_image:v1.1 . +docker build -t my-first-image:v1.1 . ``` 2. **Tag the Image with a New Version**: Tag the new image version using `docker tag` with a relevant version number or tag.