Some containers.
First, install Docker (e.g. on MacOS with homebrew).
brew cask install docker
Launch docker.
First, create an azure container registry.
Then:
- Tag image with azure container registry name.
- Login to azure container registry.
- Push image to azure container registry.
docker tag <image-name>:<image-tag> <azure-container-registry-name>.azurecr.io/<image-name>:<image-tag>
cat ./password.txt | docker login --username <azure-container-registry-name> --password-stdin <azure-container-registry-name>.azurecr.io
docker push <azure-container-registry-name>.azurecr.io/<image-name>:<image-tag>
- Tag image with Docker Hub username
- Login to Docker Hub
- Push image to Docker Hub
docker tag <image-name>:<image-tag> <docker-hub-username>/<image-name>:<image-tag>
docker login --username <docker-hub-username>
docker push <docker-hub-username>/<image-name>:<image-tag>