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
- Login to Docker hub:
docker login --username=avitotech --password=...
- Download new image from private registry:
Example:
docker pull <DOCKER_REGISTRY>/<repository>/<image>:<TAG>
docker pull inhouse-registry/android/android-emulator-29:c0de63a4cd
- Set image the same tag but name for repository DockerHub:
Example:
docker tag <SOURCE IMAGE> avitotech/android-emulator-<API>:<TAG>
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.
- Deploy the image to DockerHub:
Example:
docker push <IMAGE>:<TAG>
docker push avitotech/android-emulator-29:c0de63a4cd