#docker (2021-05)

docker

All things docker

Archive: https://archive.sweetops.com/docker/

2021-05-10

Zach avatar

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

sheldonh avatar
sheldonh

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.

2
Zach avatar

I’m about to go down that path, I was going to make a ‘library’ of various compose templates

cool-doge1
mikesew avatar
mikesew

i suppose now that ECS supports dockerfiles, that gives people an extra push to have them ready?

2021-05-21

2021-05-26

kumar k avatar
kumar k

Hello

kumar k avatar
kumar k

I am running into an Error when configuring ECR authorization token with docker login

kumar k avatar
kumar k
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
kumar k avatar
kumar k

I am using mac os.Did someone ran into this issue before?

Santiago Campuzano avatar
Santiago Campuzano

What version of the AWS CLI are you using ?

kumar k avatar
kumar k

aws-cli/2.2.6 Python/3.8.8 Darwin/19.5.0 exe/x86_64 prompt/off

Santiago Campuzano avatar
Santiago Campuzano

try doing it like this

Santiago Campuzano avatar
Santiago Campuzano
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 123456789.dkr.ecr.us-east-1.amazonaws.com
Santiago Campuzano avatar
Santiago Campuzano

It works for me

kumar k avatar
kumar k

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

Santiago Campuzano avatar
Santiago Campuzano

It’s really weird…. Im using the same version of the AWS CLI

Santiago Campuzano avatar
Santiago Campuzano

This is my config file

Santiago Campuzano avatar
Santiago Campuzano
{
	"auths": {
		"12345678.dkr.ecr.us-east-1.amazonaws.com": {}
	},
	"credsStore": "desktop",
	"experimental": "disabled"
}
Santiago Campuzano avatar
Santiago Campuzano

@kumar k What Docker version are you using ?

kumar k avatar
kumar k

Docker version 20.10.6, build 370c289

kumar k avatar
kumar k

Now seeing this error

kumar k avatar
kumar k

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: `

kumar k avatar
kumar k

After changing cred store to desktop

Santiago Campuzano avatar
Santiago Campuzano
01:48:53 AM
Santiago Campuzano avatar
Santiago Campuzano

This is my docker version for Mac

Santiago Campuzano avatar
Santiago Campuzano

You should try resetting Docker

Santiago Campuzano avatar
Santiago Campuzano

A factory reset

kumar k avatar
kumar k
01:52:59 AM
kumar k avatar
kumar k

It works now.Thank you for your help

Santiago Campuzano avatar
Santiago Campuzano

YW !

kumar k avatar
kumar k

Do i need to change anything in config.json?

kumar k avatar
kumar k

Currently set to “credsStore” : “ecr-login”,

2021-05-27

Brian Ojeda avatar
Brian Ojeda

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"
  }
}
awslabs/amazon-ecr-credential-helperattachment image

Automatically gets credentials for Amazon ECR on docker push/docker pull - awslabs/amazon-ecr-credential-helper

Brian Ojeda avatar
Brian Ojeda

… 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
awslabs/amazon-ecr-credential-helperattachment image

Automatically gets credentials for Amazon ECR on docker push/docker pull - awslabs/amazon-ecr-credential-helper

kumar k avatar
kumar k

Thanks Brian

kumar k avatar
kumar k

How do i check if a container has following capabilities? NET_ADMIN”,”NET_RAW

    keyboard_arrow_up