Fix tag an existed tag name of a repository#8511
Conversation
Signed-off-by: Lei Jitang <[email protected]>
There was a problem hiding this comment.
sorry let me explain better you can change these to
errorOut(err, t, out)
the errorOut function will handle the printing of the error :)
There was a problem hiding this comment.
@jfrazelle errorOut(err, t, fmt.Sprintf("%v %v", out, err)) is also used in tests TestTagUnprefixedRepoByName and TestTagUnprefixedRepoByID.
Maybe it is need a cleanup
There was a problem hiding this comment.
hmm ya we can send a cleanup PR down the road :) thanks!
|
update |
There was a problem hiding this comment.
hey sorry we got rid of the errorOut function in a cleanup PR so if you could just change these to a t.Fatal that would be great :)
Signed-off-by: Lei Jitang <[email protected]>
|
update the PR,change errorOut to t.Fatal |
|
awesome thank you LGTM |
|
LGTM |
Fix tag an existed tag name of a repository
replace #8303
replace #8487
When tag a image with a tag name which is existed in the repository,
docker should prompt it is conflicted and it will only worked when with
a -f option.But the docker doesn't work like that,it will just
replace the image whether you have a -f option or not.View the
code you can find that if an repoName is existed,it will never go
to check if 'force' option is set or not.