docker / docker/cli

Return image ID from docker image load command

Open
#2,212 7 comments 21 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/distribution kind/enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.