just run

$(aws ecr get-login --no-include-email)

which will have the aws cli generate the docker login command and then zsh will run that command