Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tags from load image #40910

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilya-korotya
Copy link

- What I did

I added tags when I load image from an archive
Issues: #40188

- How I did it

  1. Get image via image id;
  2. Find all references for the image;
  3. Set tags;

- How to verify it

$ docker pull hello-world
$ docker tag bf756fb1ae65 mytag:v1
$ docker images

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
hello-world         latest              bf756fb1ae65        4 months ago        13.3kB
mytag               v1                  bf756fb1ae65        4 months ago        13.3kB

$ docker save bf756fb1ae65 -o myapp.v1.tgz
$ docker rmi -f bf756fb1ae65
$ docker load -i myapp.v1.tgz
$ docker images

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
hello-world         latest              bf756fb1ae65        4 months ago        13.3kB
mytag               v1                  bf756fb1ae65        4 months ago        13.3kB

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: ilya-korotya <officalbatya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants