Hi @daniel-lundqvist_1790,
Thanks for clarifying. These are different things...
The docker image history
displays all lines in the history
section of the container configuration file (CCF), which includes both layer-creating and nonlayer-creating commands. A CCF is optional, I suspect that command wouldn't work without the CCF, but I don't know.
The "Layers" tab in ProGet displayed the actual layers (i.e. .tar.gz
files on disk) that the image. If available, the CCF is used to augment the layer with command information.
As an example, you can see the Docker image for ProGet itself:
You can see the CCF lists the history:
"history": [
{
"created": "2024-07-02T01:25:02.331012304Z",
"created_by": "/bin/sh -c #(nop) ADD file:b24689567a7c604de93e4ef1dc87c372514f692556744da43925c575b4f80df6 in / "
},
{
"created": "2024-07-02T01:25:02.745660567Z",
"created_by": "/bin/sh -c #(nop) CMD [\"bash\"]",
"empty_layer": true
},
{
"created": "2024-07-09T14:47:21.224481352Z",
"created_by": "ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true",
"comment": "buildkit.dockerfile.v0",
"empty_layer": true
},
{
"created": "2024-07-09T14:47:21.224481352Z",
"created_by": "RUN /bin/sh -c apt-get update \u0026\u0026 apt-get install -y --no-install-recommends ca-certificates libc6 libgcc-s1 libicu72 libssl3 libstdc++6 tzdata zlib1g \u0026\u0026 rm -rf /var/lib/apt/lists/* # buildkit",
"comment": "buildkit.dockerfile.v0"
},
But only two of those generated FS changes and became layers. So that's what is displayed on the "Layers" page.
Thanks,
Alana