User Tools

Site Tools


docker_push

Docker Hub

Sign up for a free account: https://hub.docker.com/


Registering Your Machine

Method 1

Command:

[root@docker ~]# docker login
Username: username
Password: 
Email: [email protected]
WARNING: login credentials saved in /root/.docker/config.json
Login Succeeded

Method 2

docker login --username=username --password=1234567 [email protected]


Committing a container (PUSH)

source: https://docs.docker.com/reference/commandline/commit/
First you will need to commit a container, then you can push it to the repository

docker commit containerID luke/containername:tag


Tagging Image Before Pushing

If you forgot to tage the container before you committed you can do it now

docker images
docker tag ImageID luke/test:tag


Pushing an Image

docker push luke/test

docker_push.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki