Skip to content

Commit

Permalink
my_first_image to my-first-image
Browse files Browse the repository at this point in the history
  • Loading branch information
TeroKeso committed Oct 10, 2023
1 parent 049afd2 commit 5f0f149
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/dockerimages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 5f0f149

Please sign in to comment.