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
 
(12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
== Image layering ==
<noinclude>
Using the docker image history command, you can see the command that was used to create each layer within an image
----
{{Navigation|Docker/Image/Erstellung|Docker/Image/Layer/Caching}}
----


=== Docker image history ===
'''{{BASEPAGENAME}}'''
Use the docker image history command to see the layers in the getting-started image you created
</noinclude>


<syntaxhighlight lang="bash" highlight="1" line copy>
== Beschreibung ==
; Image layering
Befehl anzeigen, der zum Erstellen eines Layers verwendet wurde
 
== docker image history==
; Docker-Image-Verlauf
Layer des „getting-started“-Image
 
<syntaxhighlight lang="bash" highlight="1"copy>
docker image history getting-started
docker image history getting-started
</syntaxhighlight>
<syntaxhighlight lang="bash" highlight="" line>
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
</syntaxhighlight>
</syntaxhighlight>


IMAGE        CREATED      CREATED BY                  SIZE        COMMENT
; Je Zeile ein Layer
a78a40cbf866    18 seconds ago  /bin/sh -c #(nop) CMD ["node" "src/index.j…  0B
Die Darstellung hier zeigt die unterste Ebene ganz unten und die neueste Ebene ganz oben
f1d1808565d6    19 seconds ago  /bin/sh -c yarn install --production      85.4MB
* Auf diese Weise können Sie auch schnell die Größe der einzelnen Ebenen erkennen, was bei der Analyse großer Bilder hilfreich ist
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


Each of the lines represents a layer in the image
; Zeilen nicht abschneiden
* The display here shows the base at the bottom with the newest layer at the top
Die Option ''--no-trunc'' sorgt für eine vollständige Ausgabe
* Using this, you can also quickly see the size of each layer, helping diagnose large images
 
You'll notice that several of the lines are truncated
* If you add the --no-trunc flag, you'll get the full output


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


[[Kategorie:Docker/Image/Layer]]
<noinclude>
----
{{Navigation|Docker/Image/Erstellung|Docker/Image/Layer/Caching}}
----
 
== Anhang ==
=== Siehe auch ===
<div style="column-count:2">
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree>
</div>
----
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}
 
=== Dokumentation ===
<!--
; Man-Page
# [https://manpages.debian.org/stable/procps/pgrep.1.de.html prep(1)]
 
; Info-Pages
 
; Hinweise
<div class="card h-100 bg-warning">
<div class="card-header">'''<big>Header</big>'''</div>
<div class="card-body bg-white">
Hier steht der Kartentext
</div>
</div>
-->
 
=== Links ===
==== Projekt ====
==== Weblinks ====
 
[[Kategorie:Docker/Image]]
 
</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