Test Docker and Artifactory Cloud

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Prerequisites: Set up a Docker virtual repository and connect your Docker client to Artifactory. For more information, see Create a Docker Repository and Connect your Docker Client to Artifactory.

To test your Docker setup with Artifactory Cloud:

  1. Run the following command to pull the Docker hello-world image:

    docker pull hello-world
  2. Log in to Artifactory:

    docker login [JFrogPlatformURL]

    Where:

    • [JFrogPlatformURL]: The URL of your JPD, without the protocol schema

    For example:

    docker login company.jfrog.io
  3. Run this command to tag the hello-world image:

    docker tag <IMAGE_ID> [JFrogPlatformURL]/<REPO_NAME>/hello-world:<TAG>

    Where:

    • <IMAGE_ID>: The ID of the hello-world image

    • [JFrogPlatformURL]: The URL of your JPD, without the protocol schema

    • <REPO_NAME>: The name of the target virtual repository

    • <TAG>: The tag you want to apply to the image

    For example:

    docker tag a1b2c3d4e5f6 company.jfrog.io/docker-virtual/hello-world:test
  4. Push the tagged image:

    docker push [JFrogPlatformURL]/<REPO_NAME>/hello-world:<TAG>

    Where:

    • [JFrogPlatformURL]: The URL of your JPD, without the protocol schema

    • <REPO_NAME>: The name of the target virtual repository

    • <TAG>: The tag you applied to the image

    For example:

    docker push company.jfrog.io/docker-virtual/hello-world:test
  5. Verify that the hello-world image with your specified tag. appears in your Artifactory repository.