1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/image
Doug Davis 6986a3220f Say something useful during docker load
During a `docker load` there are times when nothing is printed
to the screen, leaving the user with no idea whether something happened.
When something *is* printed, often its just something like:
```
1834950e52ce: Loading layer 1.311 MB/1.311 MB
5f70bf18a086: Loading layer 1.024 kB/1.024 kB
```
which isn't necessarily the same as the image IDs.

This PR will either show:
- all of the tags for the image, or
- all of the image IDs if there are no tags

Sample output:
```
$ docker load -i busybox.tar
Loaded image: busybox:latest

$ docker load -i a.tar
Loaded image ID: sha256:47bcc53f74dc94b1920f0b34f6036096526296767650f223433fe65c35f149eb
```

IOW, show the human-friendly stuff first and then only if there are no tags
default back to the image IDs, so they have something to work with.

For me this this is needed because I have lots of images and after a
recent `docker load` I had no idea what image I just imported and had a
hard time figuring it out.  This should fix that by telling the user
which images they just imported.

I'll add tests once there's agreement that we want this change.

Signed-off-by: Doug Davis <dug@us.ibm.com>
2016-06-08 17:17:05 +02:00
..
spec Update image specification for content-addressability changes 2016-05-12 11:12:34 -07:00
tarexport Say something useful during docker load 2016-06-08 17:17:05 +02:00
v1 Update code for latest engine-api 2016-04-19 16:56:54 +02:00
fs.go Safer file io for configuration files 2016-04-21 11:31:15 -07:00
fs_test.go Update code to compile against new manifest interface 2016-01-08 17:24:20 -08:00
image.go Add os_version and os_features to Image 2016-04-04 13:14:57 -07:00
image_test.go
rootfs.go Windows: Support non-base-layered images 2016-04-07 17:52:26 -07:00
rootfs_unix.go Windows: Support non-base-layered images 2016-04-07 17:52:26 -07:00
rootfs_windows.go Windows: Support non-base-layered images 2016-04-07 17:52:26 -07:00
store.go Fix .ensure-emptyfs on non-x86_64 architectures 2016-04-08 17:38:13 -04:00
store_test.go Clear old parent reference on resetting image parent 2016-02-05 17:05:19 -08:00