Google Container Registry Docker Integration




  • An authorized account to Google Cloud

  • Cloud SDK installed with the authorized account to Google Cloud

  • Docker installed

  • Make sure Google Cloud SDK is your docker helper. If you didn't run it before, you can do that with the command
    gcloud auth configure-docker 

  • Google Container Registry API in Cloud Console is enabled, and you can pull images from Google Container Registry

  • User is already logged in the account in order to have access to cloud repositories:
    gcloud auth login

Download Unified Agent & Configuration File

Notice on periodically fetching the Unified Agent

It is advised to use the below commands only once a week to download the latest version of the Unified Agent for performance reasons and not as part of every build. You can do this using a scheduler task, such as cron.

Use the following options to download the latest version of the WhiteSource Unified Agent JAR file and configuration file to your local host.

Windows Using CURL

  1. Download CURL, and add it to your PATH environment variable.

  2. Open a new command prompt.

  3. Run the following commands:

    Windows Using CURL

    1 2 curl -LJO "" curl -LJO ""

Windows Using PowerShell

  1. Open a new command prompt.

  2. Run the following commands:

    Windows Using PowerShell

    1 2 powershell bitsadmin /transfer mydownload /dynamic /download /priority FOREGROUND $pwd\wss-unified-agent.jar powershell bitsadmin /transfer mydownload /dynamic /download /priority FOREGROUND $pwd\wss-unified-agent.config 

    NOTE: If you want to use PowerShell on Windows, ensure that Background Intelligent Transfer Service (BITS) is enabled.

Windows - Manual Download

Download the following files manually using your web browser or any other download manager:


Run the following commands from the Linux/Unix bash prompt :

Linux/Unix Using CURL

1 2 curl -LJO "" curl -LJO ""

Update Configuration File

  1. Update the configuration file (wss-unified-agent.config) that you previously downloaded in according to your specific requirements.

  2. Enable the relevant lines by removing the '#' symbol at the beginning of the lines. 

Related Parameters



Default Value




Default Value



true or false


Enable/Disable google container registry resolving.


account mail

Empty String

Not mandatory. Specifies which account to set active and work on, cloud SDK can have multiple logged in accounts but may have only one active.
One account is always active by default. Otherwise, commands will not work.



Empty List

A list of repositories separated by comma. If empty, it will use the default repository.

Example value:,

Run the Unified Agent

Run the Unified Agent with the modified configuration file via this command:

1 java -jar wss-unified-agent.jar -apiKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx -c wss-unified-agent.config

Scanning Information

The scanner saves your required images and scans all the file system and installed packages. It scans all the image layers, and handles archive files in the layers based on the value in the property 'archiveExtractionDepth'.

The Docker image is saved to the temporary directory defined in your environment and is deleted immediately after the scan.

The scanning results are presented in a new WhiteSource project identified by the name of the image in the following format:  <image id> <repository> <tag>. The project is created in the WhiteSource product specified in the configuration file or command line.