Pushes a docker image to a docker registry.