using remote Docker repository

introduction

sign up an account at Docker Cloud and create a repository named after the image you want to push e.g. ubuntu. The image will then be pullable from your docker host as LOGIN/REPOSITORY.

getting ready

eventually rename/retag the image accordingly

docker tag custom-ubuntu:latest pbraun9/ubuntu:latest

pushing an image to Docker Cloud

retag your image accordingly and push it to the public or private repo,

#export DOCKER_ID_USER="pbraun9"
docker login -u pbraun9

docker push pbraun9/ubuntu
docker push pbraun9/centos
docker push pbraun9/devuan-svr4
docker push pbraun9/devuan
docker push pbraun9/meet

docker push pbraun9/wg-access-server:v0.11.0

docker push pbraun9/sabotage-stage1
docker push pbraun9/sabotage-custom
docker push pbraun9/sabotage-nginx-debug
docker push pbraun9/sabotage-nginx

GHCR

similarly you can push to GHCR

github settings / dev settings
--> personal access tokens

docker login ghcr.io -u GITHUB_USERNAME

docker push GITHUB_USERNAME/IMAGE:TAG

Resources

https://docs.docker.com/docker-cloud/builds/push-images/

https://docs.docker.com/registry/recipes/mirror/

ghcr

https://cto.ai/blog/build-and-deploy-a-docker-image-on-ghcr/

https://github.com/features/packages

https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun