workingwithrepository.rst 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .. _working_with_the_repository:
  2. Working with the repository
  3. ============================
  4. Connecting to the repository
  5. ----------------------------
  6. You create a user on the central docker repository by running
  7. .. code-block:: bash
  8. docker login
  9. If your username does not exist it will prompt you to also enter a password and your e-mail address. It will then
  10. automatically log you in.
  11. Committing a container to a named image
  12. ---------------------------------------
  13. In order to commit to the repository it is required to have committed your container to an image with your namespace.
  14. .. code-block:: bash
  15. # for example docker commit $CONTAINER_ID dhrp/kickassapp
  16. docker commit <container_id> <your username>/<some_name>
  17. Pushing a container to the repository
  18. -----------------------------------------
  19. In order to push an image to the repository you need to have committed your container to a named image (see above)
  20. Now you can commit this image to the repository
  21. .. code-block:: bash
  22. # for example docker push dhrp/kickassapp
  23. docker push <image-name>