mirror of
https://github.com/clearlinux/docs.git
synced 2026-08-19 05:37:17 +00:00
@@ -458,10 +458,10 @@ while (my $image = shift) {
|
||||
say '```';
|
||||
|
||||
print "\n";
|
||||
say '- Manifest MIME: `' . $data->{manifestVersion} . '`' if $data->{manifestVersion};
|
||||
say '- Platforms:';
|
||||
say "-\t" . 'Manifest MIME: `' . $data->{manifestVersion} . '`' if $data->{manifestVersion};
|
||||
say "-\t" . 'Platforms:';
|
||||
for my $imageData (@{ $data->{images} }) {
|
||||
say ' - ' . platform_string($imageData->{platform});
|
||||
say "\t-\t" . platform_string($imageData->{platform});
|
||||
}
|
||||
|
||||
for my $imageData (@{ $data->{images} }) {
|
||||
@@ -476,13 +476,13 @@ while (my $image = shift) {
|
||||
}
|
||||
|
||||
print "\n";
|
||||
say '- Docker Version: ' . $imageData->{dockerVersion} if $imageData->{dockerVersion};
|
||||
say '- Manifest MIME: `' . $imageData->{manifestVersion} . '`' if $imageData->{manifestVersion};
|
||||
say '- Total Size: **' . size($imageData->{size}) . '** ';
|
||||
say ' (compressed transfer size, not on-disk size)';
|
||||
say '- Image ID: `' . $imageData->{imageId} . '`' if $imageData->{imageId};
|
||||
say '- Entrypoint: `' . Mojo::JSON::encode_json($imageData->{entrypoint}) . '`' if $imageData->{entrypoint} && @{ $imageData->{entrypoint} };
|
||||
say '- Default Command: `' . Mojo::JSON::encode_json($imageData->{defaultCommand}) . '`' if $imageData->{defaultCommand};
|
||||
say "-\t" . 'Docker Version: ' . $imageData->{dockerVersion} if $imageData->{dockerVersion};
|
||||
say "-\t" . 'Manifest MIME: `' . $imageData->{manifestVersion} . '`' if $imageData->{manifestVersion};
|
||||
say "-\t" . 'Total Size: **' . size($imageData->{size}) . '** ';
|
||||
say "\t" . '(compressed transfer size, not on-disk size)';
|
||||
say "-\t" . 'Image ID: `' . $imageData->{imageId} . '`' if $imageData->{imageId};
|
||||
say "-\t" . 'Entrypoint: `' . Mojo::JSON::encode_json($imageData->{entrypoint}) . '`' if $imageData->{entrypoint} && @{ $imageData->{entrypoint} };
|
||||
say "-\t" . 'Default Command: `' . Mojo::JSON::encode_json($imageData->{defaultCommand}) . '`' if $imageData->{defaultCommand};
|
||||
|
||||
print "\n";
|
||||
say '```dockerfile';
|
||||
@@ -493,11 +493,11 @@ while (my $image = shift) {
|
||||
say '```';
|
||||
|
||||
print "\n";
|
||||
say '- Layers:';
|
||||
say "-\t" . 'Layers:';
|
||||
for my $layer (@{ $imageData->{layers} }) {
|
||||
say ' - `' . $layer->{digest} . '` ';
|
||||
say ' Last Modified: ' . date($layer->{lastModified}) . ' ';
|
||||
say ' Size: ' . size($layer->{size});
|
||||
say "\t-\t" . '`' . $layer->{digest} . '` ';
|
||||
say "\t\t" . 'Last Modified: ' . date($layer->{lastModified}) . ' ';
|
||||
say "\t\t" . 'Size: ' . size($layer->{size});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+12
-12
@@ -10,17 +10,17 @@
|
||||
$ docker pull hello-world@sha256:e52be8ffeeb1f374f440893189cd32f44cb166650e7ab185fa7735b7dc48d619
|
||||
```
|
||||
|
||||
- Platforms:
|
||||
- linux; amd64
|
||||
- Platforms:
|
||||
- linux; amd64
|
||||
|
||||
### `hello-world:latest` - linux; amd64
|
||||
|
||||
- Docker Version: 1.10.3
|
||||
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
|
||||
- Total Size: **605.0 B**
|
||||
(compressed transfer size, not on-disk size)
|
||||
- Image ID: `sha256:693bce72514984f01f217e878d143162b5f4c1b83b018e7e6dc7394f055e7cd5`
|
||||
- Default Command: `["\/hello"]`
|
||||
- Docker Version: 1.10.3
|
||||
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
|
||||
- Total Size: **605.0 B**
|
||||
(compressed transfer size, not on-disk size)
|
||||
- Image ID: `sha256:693bce72514984f01f217e878d143162b5f4c1b83b018e7e6dc7394f055e7cd5`
|
||||
- Default Command: `["\/hello"]`
|
||||
|
||||
```dockerfile
|
||||
# Wed, 08 Jun 2016 01:04:08 GMT
|
||||
@@ -29,7 +29,7 @@ COPY file:5b991cab355ee2f81ad3ac443c7b66111b0cb4468522e719e726411075919a65 in /
|
||||
CMD ["/hello"]
|
||||
```
|
||||
|
||||
- Layers:
|
||||
- `sha256:a9d36faac0fe2a855f798346f33bd48917bf3af9b6e4b77870ef8862fee8a8a3`
|
||||
Last Modified: Wed, 08 Jun 2016 20:54:32 GMT
|
||||
Size: 605.0 B
|
||||
- Layers:
|
||||
- `sha256:a9d36faac0fe2a855f798346f33bd48917bf3af9b6e4b77870ef8862fee8a8a3`
|
||||
Last Modified: Wed, 08 Jun 2016 20:54:32 GMT
|
||||
Size: 605.0 B
|
||||
|
||||
Reference in New Issue
Block a user