#docker (2021-05)
All things docker
Archive: https://archive.sweetops.com/docker/
2021-05-10
is anyone using S6overlay and know how to get the user step-down to work? Their docs state that USER
should work (with a few features breaking) but it seems like there must be some other voodoo involved because it just ends up with my commands not having permission to execute at runtime
2021-05-20
Do most of you maintain a docker compose project for various ECS tasks that need to talk to each other to iterate more quickly and ensure local dev is possible? I’m assuming so but wanted to confirm that’s so. Microservices can tend to have a lot of pieces moving so it’s more effort but I figure it’s important to the development experience.
I’m about to go down that path, I was going to make a ‘library’ of various compose templates
i suppose now that ECS supports dockerfiles, that gives people an extra push to have them ready?
2021-05-21
2021-05-26
Hello
I am running into an Error when configuring ECR authorization token with docker login
echo $(aws ecr get-login-password –region us-east-1 –profile test) | docker login –password-stdin –username AWS 123456789.dkr.ecr.us-east-1.amazonaws.com Error saving credentials: error storing credentials - err: exit status 1, out: not implemented |
I am using mac os.Did someone ran into this issue before?
What version of the AWS CLI are you using ?
aws-cli/2.2.6 Python/3.8.8 Darwin/19.5.0 exe/x86_64 prompt/off
try doing it like this
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 123456789.dkr.ecr.us-east-1.amazonaws.com
It works for me
aws ecr get-login-password –region us-east-1 –profile test | docker login –username AWS –password-stdin 123456789.dkr.ecr.us-east-1.amazonaws.com
Error saving credentials: error storing credentials - err: exit status 1, out: not implemented
It’s really weird…. Im using the same version of the AWS CLI
This is my config file
{
"auths": {
"12345678.dkr.ecr.us-east-1.amazonaws.com": {}
},
"credsStore": "desktop",
"experimental": "disabled"
}
@kumar k What Docker version are you using ?
Docker version 20.10.6, build 370c289
Now seeing this error
Error saving credentials: error storing credentials - err: exit status 1, out: error storing credentials - err: exec: "docker-credential-osxkeychain": executable file not found in $PATH, out:
`
After changing cred store to desktop
This is my docker version for Mac
You should try resetting Docker
A factory reset
It works now.Thank you for your help
YW !
Do i need to change anything in config.json?
Currently set to “credsStore” : “ecr-login”,
2021-05-27
Do you have ecr credentials helper installed? You cannot set credStore
to ecr-login
without the helper installed. Additionally, setting the credStore
will break logins for all non-ecr logins unless you have also define a credHelpers
key for the specific non-ecr repo.
https://github.com/awslabs/amazon-ecr-credential-helper
My recommendation…
• install ecr credentials helper
• update config.json
with json below
◦ update the repo host to match yours
If done correctly, you do not need to explicitly login to docker. Docker CLI will automatically login when pulling or pushing assuming your AWS credentials are correct and active in the environment. FYI, not sure if ecr credential helper works with AWS SSO cli profiles.
{
"credsStore: "",
"credHelpers": {
"123456789.dkr.ecr.us-east-1.amazonaws.com": "ecr-login"
}
}
Automatically gets credentials for Amazon ECR on docker push/docker pull - awslabs/amazon-ecr-credential-helper
… Or you can set credsStore
back to ""
then try the explicit manual login command…
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 123456789.dkr.ecr.us-east-1.amazonaws.com
Automatically gets credentials for Amazon ECR on docker push/docker pull - awslabs/amazon-ecr-credential-helper
Thanks Brian
How do i check if a container has following capabilities? NET_ADMIN”,”NET_RAW