Right now I do this:
docker run -it --rm 201811111111.dkr.ecr.us-west-2.amazonaws.com/foo/bar:latest /bin/sh
Is there a way to configure Docker so I can just do this?
docker run -it --rm foo/bar:latest /bin/sh
There's no global configuration you can set to make this happen. However, for each tag, you can do this:
docker tag 201811111111.dkr.ecr.us-west-2.amazonaws.com/foo/bar:latest foo/bar:latest
which lets you do this:
docker run -it --rm foo/bar:latest /bin/sh
docker images
will show both the images.