AWS EC2 ECR Docker push no basic auth credentials

You did set up an AWS EC2 VM, installed Docker, and set up a repository in AWS ECR (Container Registry).

You got the permissions for listing and creating credentials for use on the AWS CLI.
You finished setting up your AWS CLI to be able to log in. And you executed the Command you saw in the documentation of AWS to login docker to be able to push your image.

Nginx 502 Bad Gateway

502 Bad Gateway means that the server you’re attempting to access is showing an error due to a problem with another server. 

In this scenario, the server is actually a proxy that receives information from another server.

If you’re getting this error in Nginx, we’ll help you troubleshoot the problem in this guide.