-
Notifications
You must be signed in to change notification settings - Fork 594
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
Building with multiple tags only updates the first tag #2678
Comments
I am happy to work on this and contribute a fix |
Seems like this is the issue in the code. Does anyone have any context on why we decided to skip images that already exist if it's not the first image? Related/caused by this conversation. nerdctl/pkg/cmd/builder/build.go Lines 99 to 111 in d993af5
|
Cc @manugupt1 |
I will look at this sometime this month and try to fix it. AFAIR, I did not think of this case. |
containerd#2678 Signed-off-by: Manu Gupta <manugupt1@gmail.com>
containerd#2678 Signed-off-by: Manu Gupta <manugupt1@gmail.com>
containerd#2678 Signed-off-by: Manu Gupta <manugupt1@gmail.com>
This fixed. Closing. |
Description
First seen here: runfinch/finch#707.
When running build while specifying multiple tags for the container, only the first tag is updated if the tags already exist.
Steps to reproduce the issue
sudo nerdctl build . -t test:tag1 -t test:tag2 -q
sudo nerdctl run test:tag1 # 1
sudo nerdctl run test:tag2 # 1
sudo nerdctl build . -t test:tag1 -t test:tag2 -q
sudo nerdctl run test:tag1 # 2
sudo nerdctl run test:tag2 # 1 (but should be 2)
Describe the results you received and expected
See steps above.
What version of nerdctl are you using?
1.7.1
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
The text was updated successfully, but these errors were encountered: