I'm trying to push a docker image to aws by using Invoke-Expression -Command (Get-ECRLoginCommand -Region us-east-2).Command
but i Just want to know the correct format of this command to push the image
I'm trying to push a docker image to aws by using Invoke-Expression -Command (Get-ECRLoginCommand -Region us-east-2).Command
but i Just want to know the correct format of this command to push the image
From your question, it seems you want to push or pull the image from ECR. Here are the steps
aws configure using aws-cli or assign role if you are on the remote server
Here is the command for window
Invoke-Expression -Command (Get-ECRLoginCommand -Region us-west-2).Command
The command for Linux/Mac
$(aws ecr get-login --no-include-email --region us-west-2)
update:
This command retrieves and displays an authentication token using the GetAuthorizationToken API that you can use to authenticate to an Amazon ECR registry.
aws ecr get-login-password --region $AWS_REGION