Skip to content

Commit a196ee8

Browse files
authored
Merge pull request #21325 from docker/published-update
publish updates from main
2 parents 492842f + 48f3bcc commit a196ee8

File tree

22 files changed

+292
-301
lines changed

22 files changed

+292
-301
lines changed

_vendor/github.com/docker/scout-cli/docs/docker_scout_sbom.yaml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/docker/scout-cli/docs/scout_cves.md

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/github.com/docker/scout-cli/docs/scout_sbom.md

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# github.com/docker/buildx v0.18.0
44
# github.com/docker/cli v27.3.2-0.20241008150905-cb3048fbebb1+incompatible
55
# github.com/docker/compose/v2 v2.30.1
6-
# github.com/docker/scout-cli v1.13.0
6+
# github.com/docker/scout-cli v1.15.0

content/get-started/docker-concepts/the-basics/what-is-an-image.md

Lines changed: 88 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,25 @@ title: What is an image?
33
weight: 20
44
keywords: concepts, build, images, container, docker desktop
55
description: What is an image
6-
aliases:
7-
- /guides/docker-concepts/the-basics/what-is-an-image/
6+
aliases:
7+
- /guides/docker-concepts/the-basics/what-is-an-image/
88
---
99

1010
{{< youtube-embed NyvT9REqLe4 >}}
1111

1212
## Explanation
1313

14-
Seeing a [container](./what-is-a-container) is an isolated process, where does it get its files and configuration? How do you share those environments?
14+
Seeing a [container](./what-is-a-container.md) is an isolated process, where does it get its files and configuration? How do you share those environments?
1515

16-
That's where container images come in!
17-
18-
A container image is a standardized package that includes all of the files, binaries, libraries, and configurations to run a container.
16+
That's where container images come in. A container image is a standardized package that includes all of the files, binaries, libraries, and configurations to run a container.
1917

2018
For a [PostgreSQL](https://hub.docker.com/_/postgres) image, that image will package the database binaries, config files, and other dependencies. For a Python web app, it'll include the Python runtime, your app code, and all of its dependencies.
2119

2220
There are two important principles of images:
2321

2422
1. Images are immutable. Once an image is created, it can't be modified. You can only make a new image or add changes on top of it.
2523

26-
2. Container images are composed of layers. Each layer represented a set of file system changes that add, remove, or modify files.
24+
2. Container images are composed of layers. Each layer represents a set of file system changes that add, remove, or modify files.
2725

2826
These two principles let you to extend or add to existing images. For example, if you are building a Python app, you can start from the [Python image](https://hub.docker.com/_/python) and add additional layers to install your app's dependencies and add your code. This lets you focus on your app, rather than Python itself.
2927

@@ -50,19 +48,18 @@ In this hands-on, you will learn how to search and pull a container image using
5048

5149
1. Open the Docker Desktop Dashboard and select the **Images** view in the left-hand navigation menu.
5250

53-
![A screenshot of the Docker Desktop Dashboard showing the image view on the left sidebar](images/click-image.webp?border=true&w=1050&h=400)
51+
![A screenshot of the Docker Desktop Dashboard showing the image view on the left sidebar](images/click-image.webp?border=true&w=1050&h=400)
5452

5553
2. Select the **Search images to run** button. If you don't see it, select the _global search bar_ at the top of the screen.
5654

57-
![A screenshot of the Docker Desktop Dashboard showing the search ta](images/search-image.webp?border)
55+
![A screenshot of the Docker Desktop Dashboard showing the search ta](images/search-image.webp?border)
5856

5957
3. In the **Search** field, enter "welcome-to-docker". Once the search has completed, select the `docker/welcome-to-docker` image.
6058

61-
![A screenshot of the Docker Desktop Dashboard showing the search results for the docker/welcome-to-docker image](images/select-image.webp?border=true&w=1050&h=400)
59+
![A screenshot of the Docker Desktop Dashboard showing the search results for the docker/welcome-to-docker image](images/select-image.webp?border=true&w=1050&h=400)
6260

6361
4. Select **Pull** to download the image.
6462

65-
6663
### Learn about the image
6764

6865
Once you have an image downloaded, you can learn quite a few details about the image either through the GUI or the CLI.
@@ -71,13 +68,11 @@ Once you have an image downloaded, you can learn quite a few details about the i
7168

7269
2. Select the **docker/welcome-to-docker** image to open details about the image.
7370

74-
![A screenshot of the Docker Desktop Dashboard showing the images view with an arrow pointing to the docker/welcome-to-docker image](images/pulled-image.webp?border=true&w=1050&h=400)
71+
![A screenshot of the Docker Desktop Dashboard showing the images view with an arrow pointing to the docker/welcome-to-docker image](images/pulled-image.webp?border=true&w=1050&h=400)
7572

7673
3. The image details page presents you with information regarding the layers of the image, the packages and libraries installed in the image, and any discovered vulnerabilities.
7774

78-
![A screenshot of the image details view for the docker/welcome-to-docker image](images/image-layers.webp?border=true&w=1050&h=400)
79-
80-
75+
![A screenshot of the image details view for the docker/welcome-to-docker image](images/image-layers.webp?border=true&w=1050&h=400)
8176

8277
{{< /tab >}}
8378

@@ -87,103 +82,101 @@ Follow the instructions to search and pull a Docker image using CLI to view its
8782

8883
### Search for and download an image
8984

90-
1. Open a terminal and search for images using the [`docker search`](/reference/cli/docker/search/) command:
91-
92-
```console
93-
docker search docker/welcome-to-docker
94-
```
85+
1. Open a terminal and search for images using the [`docker search`](/reference/cli/docker/search.md) command:
9586

96-
You will see output like the following:
87+
```console
88+
docker search docker/welcome-to-docker
89+
```
9790

98-
```console
99-
NAME DESCRIPTION STARS OFFICIAL
100-
docker/welcome-to-docker Docker image for new users getting started w… 20
101-
```
91+
You will see output like the following:
10292

103-
This output shows you information about relevant images available on Docker Hub.
93+
```console
94+
NAME DESCRIPTION STARS OFFICIAL
95+
docker/welcome-to-docker Docker image for new users getting started w… 20
96+
```
10497

105-
2. Pull the image using the [`docker pull`](/reference/cli/docker/image/pull/) command.
98+
This output shows you information about relevant images available on Docker Hub.
10699

107-
```console
108-
docker pull docker/welcome-to-docker
109-
```
100+
2. Pull the image using the [`docker pull`](/reference/cli/docker/image/pull.md) command.
110101

111-
You will see output like the following:
102+
```console
103+
docker pull docker/welcome-to-docker
104+
```
112105

113-
```console
114-
Using default tag: latest
115-
latest: Pulling from docker/welcome-to-docker
116-
579b34f0a95b: Download complete
117-
d11a451e6399: Download complete
118-
1c2214f9937c: Download complete
119-
b42a2f288f4d: Download complete
120-
54b19e12c655: Download complete
121-
1fb28e078240: Download complete
122-
94be7e780731: Download complete
123-
89578ce72c35: Download complete
124-
Digest: sha256:eedaff45e3c78538087bdd9dc7afafac7e110061bbdd836af4104b10f10ab693
125-
Status: Downloaded newer image for docker/welcome-to-docker:latest
126-
docker.io/docker/welcome-to-docker:latest
127-
```
106+
You will see output like the following:
128107

129-
Each of line represents a different downloaded layer of the image. Remember that each layer is a set of filesystem changes and provides functionality of the image.
108+
```console
109+
Using default tag: latest
110+
latest: Pulling from docker/welcome-to-docker
111+
579b34f0a95b: Download complete
112+
d11a451e6399: Download complete
113+
1c2214f9937c: Download complete
114+
b42a2f288f4d: Download complete
115+
54b19e12c655: Download complete
116+
1fb28e078240: Download complete
117+
94be7e780731: Download complete
118+
89578ce72c35: Download complete
119+
Digest: sha256:eedaff45e3c78538087bdd9dc7afafac7e110061bbdd836af4104b10f10ab693
120+
Status: Downloaded newer image for docker/welcome-to-docker:latest
121+
docker.io/docker/welcome-to-docker:latest
122+
```
130123

124+
Each of line represents a different downloaded layer of the image. Remember that each layer is a set of filesystem changes and provides functionality of the image.
131125

132126
### Learn about the image
133127

134-
1. List your downloaded images using the [`docker image ls`](/reference/cli/docker/image/ls/) command:
135-
136-
```console
137-
docker image ls
138-
```
128+
1. List your downloaded images using the [`docker image ls`](/reference/cli/docker/image/ls.md) command:
139129

140-
You will see output like the following:
130+
```console
131+
docker image ls
132+
```
141133

142-
```console
143-
REPOSITORY TAG IMAGE ID CREATED SIZE
144-
docker/welcome-to-docker latest eedaff45e3c7 4 months ago 29.7MB
145-
```
134+
You will see output like the following:
146135

147-
The command shows a list of Docker images currently available on your system. The `docker/welcome-to-docker` has a total size of approximately 29.7MB.
136+
```console
137+
REPOSITORY TAG IMAGE ID CREATED SIZE
138+
docker/welcome-to-docker latest eedaff45e3c7 4 months ago 29.7MB
139+
```
148140

149-
> **Image size**
150-
>
151-
> The image size represented here reflects the uncompressed size of the image, not the download size of the layers.
141+
The command shows a list of Docker images currently available on your system. The `docker/welcome-to-docker` has a total size of approximately 29.7MB.
152142

153-
2. List the image's layers using the [`docker image history`](/reference/cli/docker/image/history/) command:
143+
> **Image size**
144+
>
145+
> The image size represented here reflects the uncompressed size of the image, not the download size of the layers.
154146
155-
```console
156-
docker image history docker/welcome-to-docker
157-
```
147+
2. List the image's layers using the [`docker image history`](/reference/cli/docker/image/history.md) command:
158148

159-
You will see output like the following:
149+
```console
150+
docker image history docker/welcome-to-docker
151+
```
160152

161-
```console
162-
IMAGE CREATED CREATED BY SIZE COMMENT
163-
648f93a1ba7d 4 months ago COPY /app/build /usr/share/nginx/html # buil… 1.6MB buildkit.dockerfile.v0
164-
<missing> 5 months ago /bin/sh -c #(nop) CMD ["nginx" "-g" "daemon… 0B
165-
<missing> 5 months ago /bin/sh -c #(nop) STOPSIGNAL SIGQUIT 0B
166-
<missing> 5 months ago /bin/sh -c #(nop) EXPOSE 80 0B
167-
<missing> 5 months ago /bin/sh -c #(nop) ENTRYPOINT ["/docker-entr… 0B
168-
<missing> 5 months ago /bin/sh -c #(nop) COPY file:9e3b2b63db9f8fc7… 4.62kB
169-
<missing> 5 months ago /bin/sh -c #(nop) COPY file:57846632accc8975… 3.02kB
170-
<missing> 5 months ago /bin/sh -c #(nop) COPY file:3b1b9915b7dd898a… 298B
171-
<missing> 5 months ago /bin/sh -c #(nop) COPY file:caec368f5a54f70a… 2.12kB
172-
<missing> 5 months ago /bin/sh -c #(nop) COPY file:01e75c6dd0ce317d… 1.62kB
173-
<missing> 5 months ago /bin/sh -c set -x && addgroup -g 101 -S … 9.7MB
174-
<missing> 5 months ago /bin/sh -c #(nop) ENV PKG_RELEASE=1 0B
175-
<missing> 5 months ago /bin/sh -c #(nop) ENV NGINX_VERSION=1.25.3 0B
176-
<missing> 5 months ago /bin/sh -c #(nop) LABEL maintainer=NGINX Do… 0B
177-
<missing> 5 months ago /bin/sh -c #(nop) CMD ["/bin/sh"] 0B
178-
<missing> 5 months ago /bin/sh -c #(nop) ADD file:ff3112828967e8004… 7.66MB
179-
```
153+
You will see output like the following:
180154

181-
This output shows you all of the layers, their sizes, and the command used to create the layer.
155+
```console
156+
IMAGE CREATED CREATED BY SIZE COMMENT
157+
648f93a1ba7d 4 months ago COPY /app/build /usr/share/nginx/html # buil… 1.6MB buildkit.dockerfile.v0
158+
<missing> 5 months ago /bin/sh -c #(nop) CMD ["nginx" "-g" "daemon… 0B
159+
<missing> 5 months ago /bin/sh -c #(nop) STOPSIGNAL SIGQUIT 0B
160+
<missing> 5 months ago /bin/sh -c #(nop) EXPOSE 80 0B
161+
<missing> 5 months ago /bin/sh -c #(nop) ENTRYPOINT ["/docker-entr… 0B
162+
<missing> 5 months ago /bin/sh -c #(nop) COPY file:9e3b2b63db9f8fc7… 4.62kB
163+
<missing> 5 months ago /bin/sh -c #(nop) COPY file:57846632accc8975… 3.02kB
164+
<missing> 5 months ago /bin/sh -c #(nop) COPY file:3b1b9915b7dd898a… 298B
165+
<missing> 5 months ago /bin/sh -c #(nop) COPY file:caec368f5a54f70a… 2.12kB
166+
<missing> 5 months ago /bin/sh -c #(nop) COPY file:01e75c6dd0ce317d… 1.62kB
167+
<missing> 5 months ago /bin/sh -c set -x && addgroup -g 101 -S … 9.7MB
168+
<missing> 5 months ago /bin/sh -c #(nop) ENV PKG_RELEASE=1 0B
169+
<missing> 5 months ago /bin/sh -c #(nop) ENV NGINX_VERSION=1.25.3 0B
170+
<missing> 5 months ago /bin/sh -c #(nop) LABEL maintainer=NGINX Do… 0B
171+
<missing> 5 months ago /bin/sh -c #(nop) CMD ["/bin/sh"] 0B
172+
<missing> 5 months ago /bin/sh -c #(nop) ADD file:ff3112828967e8004… 7.66MB
173+
```
182174

183-
> **Viewing the full command**
184-
>
185-
> If you add the `--no-trunc` flag to the command, you will see the full command. Note that, since the output is in a table-like format, longer commands will cause the output to be very difficult to navigate.
175+
This output shows you all of the layers, their sizes, and the command used to create the layer.
186176

177+
> **Viewing the full command**
178+
>
179+
> If you add the `--no-trunc` flag to the command, you will see the full command. Note that, since the output is in a table-like format, longer commands will cause the output to be very difficult to navigate.
187180
188181
{{< /tab >}}
189182
{{< /tabs >}}
@@ -194,12 +187,12 @@ In this walkthrough, you searched and pulled a Docker image. In addition to pull
194187

195188
The following resources will help you learn more about exploring, finding, and building images:
196189

197-
- [Docker Trusted Content](/trusted-content/)
198-
- [Docker Official Images docs](/trusted-content/official-images/)
199-
- [Docker Verified Publisher docs](/trusted-content/dvp-program/)
200-
- [Docker-Sponsored Open Source Program docs](/trusted-content/dsos-program/)
201-
- [Explore the Image view in Docker Desktop](/desktop/use-desktop/images/)
202-
- [Packaging your software](/build/building/packaging/)
190+
- [Docker Trusted Content](/manuals/trusted-content/_index.md)
191+
- [Docker Official Images docs](/manuals/trusted-content/official-images/_index.md)
192+
- [Docker Verified Publisher docs](/manuals/trusted-content/dvp-program.md)
193+
- [Docker-Sponsored Open Source Program docs](/manuals/trusted-content/dsos-program.md)
194+
- [Explore the Image view in Docker Desktop](/manuals/desktop/use-desktop/images.md)
195+
- [Docker Build overview](/manuals/build/concepts/overview.md)
203196
- [Docker Hub](https://hub.docker.com)
204197

205198
## Next steps

0 commit comments

Comments
 (0)