#docker - May 2021

dockerArchived
16 messages

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

Zach
Zachover 5 years ago
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
sheldonh
sheldonhover 5 years ago
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.
kumar k
kumar kover 5 years ago
Hello
kumar k
kumar kover 5 years ago
I am running into an Error when configuring ECR authorization token with docker login
kumar k
kumar kover 5 years ago
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
kumar kover 5 years ago
I am using mac os.Did someone ran into this issue before?
Santiago Campuzano
Santiago Campuzanoover 5 years ago
What version of the AWS CLI are you using ?
kumar k
kumar kover 5 years ago
aws-cli/2.2.6 Python/3.8.8 Darwin/19.5.0 exe/x86_64 prompt/off
Santiago Campuzano
Santiago Campuzanoover 5 years ago
try doing it like this
Santiago Campuzano
Santiago Campuzanoover 5 years ago
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin <http://123456789.dkr.ecr.us-east-1.amazonaws.com|123456789.dkr.ecr.us-east-1.amazonaws.com>
Santiago Campuzano
Santiago Campuzanoover 5 years ago
It works for me
kumar k
kumar kover 5 years ago
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
kumar k
kumar kover 5 years ago
Do i need to change anything in config.json?
kumar k
kumar kover 5 years ago
Currently set to "credsStore" : "ecr-login",
Brian Ojeda
Brian Ojedaover 5 years ago(edited)
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": {
    "<http://123456789.dkr.ecr.us-east-1.amazonaws.com|123456789.dkr.ecr.us-east-1.amazonaws.com>": "ecr-login"
  }
}
kumar k
kumar kover 5 years ago
How do i check if a container has following capabilities?
NET_ADMIN","NET_RAW