Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Please note that that Docker repositories functionality is NOT available in Artifactory OSS distribution.

Docker commands examples

Various examples can be found in Basic docker commands article.

Docker repositories via subdomain

This is preferred option for all TDS environments and almost every TDS customer has this option enabled and supported. This Sub Domain method uses  Artifactory Docker repository key/name as the sub domain of Artifactory URL.

Example Examples of docker push or pull and login commands:

Code Block
docker pull / pushlogin -u <USER_NAME> -p <USER_PASSWORD> <REPOSITORY_KEY>.artifactory.shared.tds.CUSTOMERX.com
docker pull <REPOSITORY_KEY>.artifactory.shared.tds.CUSTOMERX.com/<IMAGE>:<TAG>
docker login -u <USER_NAME> -p <USER_PASSWORD> push <REPOSITORY_KEY>.artifactory.shared.tds.CUSTOMERX.com/<IMAGE>:<TAG>

This is recommended and most popular option due to convenience with the repository address which is easier to read, type or remember.

...

In this case each Artifactory Docker repository bounds to a specific port. You can find that port number via TDS portal in every Artifactory docker SaaS entity detail. It should be usually from 9000-9999 range.

Example Examples of docker push or pull and login commands:

Code Block
docker pull / push login -u <USER_NAME> -p <USER_PASSWORD> artifactory.shared.tds.CUSTOMERX.com:<REPOSITORY_PORT>
docker pull artifactory.shared.tds.CUSTOMERX.com:<REPOSITORY_PORT>/<IMAGE>:<TAG>
docker login -u <USER_NAME> -p <USER_PASSWORD> push artifactory.shared.tds.CUSTOMERX.com:<REPOSITORY_PORT>/<IMAGE>:<TAG>

This option is used rather occasionally and in cases when customer did not want to have subdomains feature enabled, for example due to extra SSL certificate needs or other infrastructure limitations.

...