Docker/Image/02 Layer: Unterschied zwischen den Versionen

Aus Foxwiki
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
K Dirkwagner verschob die Seite Docker/Image/Layer nach Docker/Image/02 Layer
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude>
<noinclude>
----
----
{{Navigation|BSI/200-3|BSI/200-3/Einleitung/Beispiele}}
{{Navigation|Docker/Image/Erstellung|Docker/Image/Layer/Caching}}
----
----


Zeile 9: Zeile 9:
== Beschreibung ==
== Beschreibung ==
; Image layering
; Image layering
Using the docker image history command, you can see the command that was used to create each layer within an image
Befehl anzeigen, der zum Erstellen eines Layers verwendet wurde


== Docker image history ==
== docker image history==
Use the docker image history command to see the layers in the getting-started image you created
; Docker-Image-Verlauf
Layer des „getting-started“-Image


<syntaxhighlight lang="bash" highlight="1"copy>
<syntaxhighlight lang="bash" highlight="1"copy>
Zeile 34: Zeile 35:
</syntaxhighlight>
</syntaxhighlight>


: Each of the lines represents a layer in the image
; Je Zeile ein Layer
* The display here shows the base at the bottom with the newest layer at the top
Die Darstellung hier zeigt die unterste Ebene ganz unten und die neueste Ebene ganz oben
* Using this, you can also quickly see the size of each layer, helping diagnose large images
* Auf diese Weise können Sie auch schnell die Größe der einzelnen Ebenen erkennen, was bei der Analyse großer Bilder hilfreich ist


; You'll notice that several of the lines are truncated
; Zeilen nicht abschneiden
* If you add the --no-trunc flag, you'll get the full output
Die Option ''--no-trunc'' sorgt für eine vollständige Ausgabe


<syntaxhighlight lang="bash" highlight="1" line copy>
<syntaxhighlight lang="bash" highlight="1" line copy>
Zeile 46: Zeile 47:


<noinclude>
<noinclude>
<!--
----
----
{{Navigation|<zurück>|<nachste>}}
{{Navigation|Docker/Image/Erstellung|Docker/Image/Layer/Caching}}
----
----
-->


== Anhang ==
== Anhang ==
Zeile 81: Zeile 80:


[[Kategorie:Docker/Image]]
[[Kategorie:Docker/Image]]
[[Kategorie:Docker/Image/Layer]]


</noinclude>
</noinclude>

Aktuelle Version vom 30. November 2026, 17:34 Uhr



Docker/Image/02 Layer


Beschreibung

Image layering

Befehl anzeigen, der zum Erstellen eines Layers verwendet wurde

docker image history

Docker-Image-Verlauf

Layer des „getting-started“-Image

docker image history getting-started
IMAGE           CREATED          CREATED BY                                     SIZE        COMMENT
a78a40cbf866    18 seconds ago   /bin/sh -c #(nop) CMD ["node" "src/index.j…    0B
f1d1808565d6    19 seconds ago   /bin/sh -c yarn install --production           85.4MB
a2c054d14948    36 seconds ago   /bin/sh -c #(nop) COPY dir:5dc710ad87c789593…  198kB
9577ae713121    37 seconds ago   /bin/sh -c #(nop) WORKDIR /app                 0B
b95baba1cfdb    13 days ago      /bin/sh -c #(nop) CMD ["node"]                 0B
<missing>       13 days ago      /bin/sh -c #(nop) ENTRYPOINT ["docker-entry…   0B
<missing>       13 days ago      /bin/sh -c #(nop) COPY file:238737301d473041…  116B
<missing>       13 days ago      /bin/sh -c apk add --no-cache --virtual .bui…  5.35MB
<missing>       13 days ago      /bin/sh -c #(nop) ENV YARN_VERSION=1.21.1      0B
<missing>       13 days ago      /bin/sh -c addgroup -g 1000 node   && addu…    74.3MB
<missing>       13 days ago      /bin/sh -c #(nop) ENV NODE_VERSION=12.14.1     0B
<missing>       13 days ago      /bin/sh -c #(nop) CMD ["/bin/sh"]              0B
<missing>       13 days ago      /bin/sh -c #(nop) ADD file:e69d441d729412d24…  5.59MB
Je Zeile ein Layer

Die Darstellung hier zeigt die unterste Ebene ganz unten und die neueste Ebene ganz oben

  • Auf diese Weise können Sie auch schnell die Größe der einzelnen Ebenen erkennen, was bei der Analyse großer Bilder hilfreich ist
Zeilen nicht abschneiden

Die Option --no-trunc sorgt für eine vollständige Ausgabe

docker image history --no-trunc getting-started




Anhang

Siehe auch



Dokumentation

Projekt