Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1017 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 1017 Bytes

Docker

Some containers.

Install Docker

First, install Docker (e.g. on MacOS with homebrew).

brew cask install docker

Launch docker.

Docker containers in Azure

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>

Docker image in Docker Hub

  • 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>