Notes based on Stéphane Maarek's Udemy course.
$(aws ecr get-login --no-include-email --region eu-west-1) - the output of the get-login command is executedaws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin 12345.dkr.ecr.eu-west-1.amazonaws.com - uses pipes, the first part of the command will give the login password, the second part of the command will take the login password and do the authentication