Remove endpoint protocol according to latest docker specific#60
Open
ikikko wants to merge 1 commit intojenkinsci:masterfrom
Open
Remove endpoint protocol according to latest docker specific#60ikikko wants to merge 1 commit intojenkinsci:masterfrom
ikikko wants to merge 1 commit intojenkinsci:masterfrom
Conversation
Member
Author
|
There is no problem so far after I fixed this plugin and installed that to my Jenkins a week ago. |
Member
|
Same comment as #59: maybe right, maybe not, but anyway all this code would better be rewritten. |
Member
|
Likely unnecessary after #67, though could still apply to corner cases such as users of the Google container registry which cannot be handled by a simple |
Member
|
I would recommend just running something along the lines of eval `aws ecr get-login --no-include-email`from a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
I couldn't
docker.image("xxx").pull()withwithRegistryfrom Amazon ECR when I had another job in which I usedaws ecr get-loginanddocker pullwith native awscli & docker cli.Cause
This plugin updated
~/.docker/config.jsonin a wrong format. We didn't have a problem when we used only this plugin. However, we had a problem when there was another job with native awscli.The config file
~/.docker/config.jsonis like a following.A problem procedure was a following way.
aws ecr get-logindocker.withRegistry()docker pullin the pipeline abovedocker pullfails if a auth entry (A) is expiredThough I'm not 100% sure, according to https://github.com/moby/moby/pull/23100/files#diff-0ec52e4c7165f2740e01649dcef5867b , both docker client should uses hostname key (A), and (B) is for backward compatibility. However this plugin updated auth key (B).