Skip to content

Commit 8d5cbc5

Browse files
authored
Minor fix to containers
1 parent 6018e3c commit 8d5cbc5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/basic_training/containers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,26 @@ To exit from the container, stop the BASH session with the `exit` command.
8585

8686
### Your first Dockerfile
8787

88-
Docker images are created by using a so-called `Dockerfile`, a simple text file containing a list of commands to assemble and configure the image with the software packages required. For example, a Dockerfile to create a container with `cowsay` installed could be as simple as this:
88+
Docker images are created by using a so-called `Dockerfile`, a simple text file containing a list of commands to assemble and configure the image with the software packages required. For example, a Dockerfile to create a container with `curl` installed could be as simple as this:
8989

9090
```dockerfile linenums="1" title="Dockerfile"
9191
FROM debian:bullseye-slim
9292

9393
LABEL image.author.name "Your Name Here"
9494
LABEL image.author.email "[email protected]"
9595

96-
RUN apt-get update && apt-get install -y curl cowsay
96+
RUN apt-get update && apt-get install -y curl
9797

9898
ENV PATH=$PATH:/usr/games/
9999
```
100100

101101
Once your Dockerfile is ready, you can build the image by using the `build` command. For example:
102102

103103
```bash
104-
docker build -t <my-image> .
104+
docker build -t my-image .
105105
```
106106

107-
Where `<my-image>` is the user-specified name for the container image you plan to build.
107+
Where `my-image` is the user-specified name for the container image you plan to build.
108108

109109
!!! tip
110110

0 commit comments

Comments
 (0)