Docs

Docker Hub Integration

Learn how to integrate Docker Hub with Cokpit

Docker Hub Credentials

Step 1: Create Access Token on Docker Hub

Example: Personal Access Token

  1. Go to Docker Hub → Account Settings → Security.

  2. Click New Access Token.

  3. Give your token a description.

  4. Select permissions:

    • Read for pull access
    • Read & Write for push access
  5. Click Generate.

  6. Copy your token immediately.

💡 Tip: Save your access token in a secure location. You won't be able to see it again!

Step 2: Add Docker Hub Credentials to Cokpit

  1. Open Cokpit and go to Integrations → Container Registry → Docker Hub.
  2. Click Add secret.
  1. Fill in the required fields:
    • Enter a unique Secret Name
    • Enter your Docker Hub Username
    • Paste your Access Token
  2. Click Submit.

Security Best Practices

  • Create tokens with minimal required permissions
  • Use different tokens for different applications
  • Regularly rotate access tokens
  • Enable two-factor authentication on Docker Hub
  • Monitor token usage in access logs