Return image ID from docker image load command
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 2.2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Description
I propose that docker image load return, apart from the image name, the assigned image ID. That would save an extra step of listing images in order to find it. It would also make the command consistent with container creation which does return container ID.
Describe the results you received:
$ docker image load --input <file-path>
Loaded image: <image-name>
Describe the results you expected:
I'd prefer to see also the image ID being returned.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Docker CLI entry point for docker image load and the existing output that reports the loaded image name. Identify the related tests, then update the behavior so the image ID is also returned and verify the command output covers both values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100