Set Up Docker Repositories

  1. In your JFrog Platform instance at the top right, enable the drop down menu and select Quick Setup.

Quick Setup

  1. On the Create Repositories dialog, choose Docker and click Next.

Create Repositories

  1. Next, enter workshop for the Repositories Prefix.

  2. Click Create. This will create the following docker repositories:

  • workshop-docker-local
  • workshop-docker-remote
  • workshop-docker

Repositories Prefix

  • Local repositories are physical, locally-managed repositories into which you can deploy artifacts. These are repositories that are local to the JFrog Artifactory instance.
  • A remote repository serves as a caching proxy for a repository managed at a remote URL (which may itself be another Artifactory remote repository).
  • A virtual repository (or “repository group”) aggregates several repositories with the same package type under a common URL. A virtual repository can aggregate local and remote repositories.
  1. Next, let’s create another docker repository to represent production images. Click the Add Repositories button and select Local Repository.

Add Repositories

  1. Select Docker for the Package Type.

  2. Name this docker repository workshop-docker-prod-local. Click Save & Finish.

Add Repositories

  1. Click on the Virtual tab under Repositories.

Virtual Repository

  1. Click on the workshop-docker virtual repository.

  2. Move the new workshop-docker-prod-local repository under Selected Repositories.

Move Repository

  1. Under Default Deployment Repository, select workshop-docker-prod-local as the default deployment repository. This means that image deployments from virtual repository workshop-docker will actually deploy from the local repository workshop-docker-prod-local.

Default Deployment Repository

  1. Click Save & Finish.

  2. Under the Local tab under Repositories, select the workshop-docker-local repository.

Local Repositories

  1. Scroll down and check Enable Indexing in Xray. This tells Xray to automatically scan this repository.

  2. Click Save & Finish.

  3. Go to Administration > Security > Settings.

  4. Check Allow Anonymous Access. For our workshop, this will allow us to deploy our Docker image to our AKS cluster without authenticating.

Anonymous Access

  1. Click Save.

Congratulations! You have set up your Docker repositories. Now let’s configure our security policies for Xray.