Difference between revisions of "FROM alpine"

From wikieduonline
Jump to navigation Jump to search
(Created page with " echo "FROM alpine" > ./Dockerfile docker build == See also == * {{Dockerfile}} * {{docker build}} Category:Docker")
Tags: Mobile web edit, Mobile edit
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* https://hub.docker.com/_/alpine
 +
 +
FROM [[alpine:latest]]
 +
FROM alpine:3.18
 
   
 
   
echo "FROM alpine" > ./[[Dockerfile]]
+
echo "FROM alpine" > ./[[Dockerfile]]
 
  [[docker build]]
 
  [[docker build]]
  
 +
<pre>
 +
[+] Building 2.6s (5/5) FINISHED
 +
=> [internal] load build definition from Dockerfile                                            0.0s
 +
=> => transferring dockerfile: 52B                                                              0.0s
 +
=> [internal] load .dockerignore                                                                0.0s
 +
=> => transferring context: 2B                                                                  0.0s
 +
=> [internal] load metadata for docker.io/library/alpine:latest                                1.9s
 +
=> [1/1] FROM docker.io/library/alpine@sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f27  0.5s
 +
=> => resolve docker.io/library/alpine@sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f27  0.0s
 +
=> => sha256:b3c136eddcbf2003d3180787cef00f39d46b9fd9e4623178282ad6a8d63ad3b0 2.69MB / 2.69MB  0.3s
 +
=> => sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c 1.64kB / 1.64kB  0.0s
 +
=> => sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0 528B / 528B      0.0s
 +
=> => sha256:6e30ab57aeeef1ebca8ac5a6ea05b5dd39d54990be94e7be18bb969a02d10a3f 1.49kB / 1.49kB  0.0s
 +
=> => extracting sha256:b3c136eddcbf2003d3180787cef00f39d46b9fd9e4623178282ad6a8d63ad3b0        0.2s
 +
=> exporting to image                                                                          0.0s
 +
=> => exporting layers                                                                          0.0s
 +
=> => writing image sha256:8e70c407a8e226b217ad9a749c8e7498214377f6142c2d5f5043a0fc01ce4a07    0.0s
  
+
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
 +
</pre>
 +
 
 +
== Related ==
 +
* <code>[[docker image ls]]</code>
 +
* [[Busybox]]
 +
* <code>[[FROM scratch]]</code>
  
 
== See also ==
 
== See also ==
* {{Dockerfile}}
+
* {{FROM}}
* {{docker build}}
+
* {{Alpine}}
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Latest revision as of 19:20, 2 August 2024

FROM alpine:latest
FROM alpine:3.18

echo "FROM alpine" > ./Dockerfile
docker build
[+] Building 2.6s (5/5) FINISHED
 => [internal] load build definition from Dockerfile                                             0.0s
 => => transferring dockerfile: 52B                                                              0.0s
 => [internal] load .dockerignore                                                                0.0s
 => => transferring context: 2B                                                                  0.0s
 => [internal] load metadata for docker.io/library/alpine:latest                                 1.9s
 => [1/1] FROM docker.io/library/alpine@sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f27  0.5s
 => => resolve docker.io/library/alpine@sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f27  0.0s
 => => sha256:b3c136eddcbf2003d3180787cef00f39d46b9fd9e4623178282ad6a8d63ad3b0 2.69MB / 2.69MB   0.3s
 => => sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c 1.64kB / 1.64kB   0.0s
 => => sha256:c3c58223e2af75154c4a7852d6924b4cc51a00c821553bbd9b3319481131b2e0 528B / 528B       0.0s
 => => sha256:6e30ab57aeeef1ebca8ac5a6ea05b5dd39d54990be94e7be18bb969a02d10a3f 1.49kB / 1.49kB   0.0s
 => => extracting sha256:b3c136eddcbf2003d3180787cef00f39d46b9fd9e4623178282ad6a8d63ad3b0        0.2s
 => exporting to image                                                                           0.0s
 => => exporting layers                                                                          0.0s
 => => writing image sha256:8e70c407a8e226b217ad9a749c8e7498214377f6142c2d5f5043a0fc01ce4a07     0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

Related[edit]

See also[edit]

Advertising: