Skip to content

How to publish images to Docker Hub#

Previously we publish images to hub.docker.com/u/avitotech. Now publication is at pause.

Automatization task MBS-8773

  1. Login to Docker hub:
    docker login --username=avitotech --password=...
    
  2. Download new image from private registry:
    docker pull <DOCKER_REGISTRY>/<repository>/<image>:<TAG>
    
    Example:
    docker pull inhouse-registry/android/android-emulator-29:c0de63a4cd
    
  3. Set image the same tag but name for repository DockerHub:
    docker tag <SOURCE IMAGE> avitotech/android-emulator-<API>:<TAG>
    
    Example:
    docker tag inhouse-registry/repository/android-emulator-29:c0de63a4cd avitotech/android-emulator-29:c0de63a4cd`
    

???+ info Unique tag gather from digest. Set it as tag, because digest in different registry could be different.

  1. Deploy the image to DockerHub:
    docker push <IMAGE>:<TAG>
    
    Example:
    docker push avitotech/android-emulator-29:c0de63a4cd