Sign up for a free account: https://hub.docker.com/
Command:
1 2 3 4 5 6 |
[root@docker ~] # docker login Username: username Password: Email: user@example.co.uk WARNING: login credentials saved in /root/ .docker /config .json Login Succeeded |
1 |
docker login --username=username --password=1234567 --email=mary@docker.com |
source: https://docs.docker.com/reference/commandline/commit/
First you will need to commit a container, then you can push it to the repository
1 |
docker commit containerID luke /containername :tag |
If you forgot to tage the container before you committed you can do it now
1 |
docker images |
1 |
docker tag ImageID luke /test :tag |
1 |
docker push luke /test |