Remove endpoint protocol according to latest docker specific #60
+1
−1
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()
withwithRegistry
from Amazon ECR when I had another job in which I usedaws ecr get-login
anddocker pull
with native awscli & docker cli.Cause
This plugin updated
~/.docker/config.json
in 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.json
is like a following.A problem procedure was a following way.
aws ecr get-login
docker.withRegistry()
docker pull
in the pipeline abovedocker pull
fails 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).