Getting started with Docker and your self-hosted Artifactory Pro installation using the subdomain method involves four basic steps:
Configure Artifactory
To configure Artifactory and your reverse proxy using the subdomain method, carry out the following steps:
Make sure Artifactory is up and running, and is activated with a valid license.
Create your virtual Docker repository (as well as a local and remote Docker repository that it should aggregate). In our example below we will use a repository named docker-virtual.
Make sure you have a reverse proxy server up and running.
Obtain a wildcard SSL certificate or use a wildcard self-signed certificate. To create a self-signed certificate, you can follow these instructions for Ubuntu.
Note
Make sure your certificate matches the Artifactory hostname used in your reverse proxy configuration. In our example below we will use art.local.
Configure Your Reverse Proxy
Artifactory's can generate your complete reverse proxy configuration file for supported servers.
Go to Reverse Proxy Configuration Generator and fill in the fields according to how your reverse proxy is set up while making sure to:
Use the correct Artifactory hostname in the Public Server Name field of Reverse Proxy Settings (in our example this will be
art.local
)Select Subdomain as the Reverse Proxy Method under Docker Reverse Proxy Settings.