Enterprise Software Supply Chain Manager (ESSCM)IntegrationsContainer Images
Docker Hub
Connect Docker Hub repositories to generate SBOMs
Docker Hub Integration
Connect your Docker Hub repositories to Safeguard for container image SBOM generation and vulnerability scanning.
Prerequisites
- A Docker Hub account
- For private repositories: Docker Hub Access Token
Public Images
Docker Hub public images can be scanned without authentication.
Step 1: Navigate to Integrations
Go to Integrations from the sidebar and click Connect on the Docker Hub card.
Step 2: Enter Image Reference
- Select the Public tab
- Enter a Name for this configuration
- Optionally add a Description
- Enter the Docker Hub image reference:
- Official images:
nginx:latest,python:3.11 - User images:
username/image:tag
- Official images:
- Click Add
Step 3: Review & Connect
- Configure Project Name and Version
- Click Connect to complete
Private Images
Step 1: Navigate to Integrations
Go to Integrations from the sidebar and click Connect on the Docker Hub card.
Step 2: Enter Credentials
- Select the Private tab
- Enter a Name for this configuration
- Optionally add a Description
- Enter your Docker Hub credentials:
- Username - Your Docker Hub username
- Access Token - Your Docker Hub access token
- Click Verify Credentials
Step 3: Select Images
- Once verified, browse your repositories
- Select the images you want to scan
- Choose specific tags
Step 4: Configure & Connect
- Set Project Name and Version for each image
- Click Connect to complete
Creating a Docker Hub Access Token
- Sign in to Docker Hub
- Click your username then Account Settings
- Select Security then Access Tokens
- Click New Access Token
- Enter a description (e.g., "Safeguard Integration")
- Select Read-only access scope
- Click Generate
- Copy the token immediately (it won't be shown again)
Image Reference Formats
| Format | Example |
|---|---|
| Official image | nginx, nginx:latest, nginx:1.25 |
| User image | username/myapp:v1.0 |
| Organization image | orgname/myapp:latest |
| With digest | nginx@sha256:abc123... |
Troubleshooting
"Credentials verification failed"
- Ensure you're using an Access Token (not your password)
- Verify the token hasn't been revoked
- Check that the username is correct
"Image not found"
- Verify the image name and tag are correct
- For private images, ensure the token has access
- Check if the image/tag exists on Docker Hub
"Rate limit exceeded"
- Docker Hub has pull rate limits for free accounts
- Authenticated requests have higher limits
- Consider upgrading your Docker Hub plan