Can't login to docker with aws

This is an extension of my last question considering I’ve decided to deploy a Docker container onto a ton of EC2’s. I’ve set up a repository and a user with full rights, and I added the correct keys to my aws cli configuration. When I try to run the docker login command that comes up after running the “aws ecr get-login” command, it gives me a failed with status: 403 forbidden error. I have absolutely no clue what’s going on, and I’ve spent the past 2 days trying to fix this error… Any ideas?

enter image description here

  • How can I boot a swarm of 50 machines with docker-machine?
  • Screen within Docker from ssh
  • Passing sensitive information to Docker container in AWS EC2 container service
  • Selenium Hub Node with Docker containers on different hosts
  • docker-compose.yml file behaves differently on ECS than local docker-compose
  • running a docker loop device on aws
  • How restart a stopped docker container
  • When to use Docker HEALTHCHECK vs livenessProbe / readinessProbe
  • How to set the MAC address for Docker LXC containers?
  • Setup subdomains in docker environment
  • How to resolve a PHP-FPM Primary script unknown with a PHP-FPM and an Nginx Docker container?
  • setup drone continuous integration with github
  • One Solution collect form web for “Can't login to docker with aws”

    I would suggest to check the security group of the EC2 Instance

    To allow access via SSH you have to apply the following settings for the Security Group of the EC2 Instance:

    Security Groups

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.