🌐 Documentation is currently available in English only. We're working on translations.

Home / Docs / Docker Guide / Docker Login

Docker Login

Authenticate with NugetHosting's container registry to push and pull images.

⏱️ 3 min read

Prerequisites

Before you begin, ensure you have:

  • Docker installed and running
  • A NugetHosting account with Container Registry access
  • An API token with container:push or container:pull scope

💡 Note: Container Registry requires a Starter plan or higher. Upgrade your plan if needed.

Docker Login

Authenticate with the NugetHosting container registry:

docker login registry.nugethosting.com -u api -p YOUR_API_TOKEN

Or use stdin for better security (recommended for scripts):

echo YOUR_API_TOKEN | docker login registry.nugethosting.com -u api --password-stdin

✅ Success: You should see "Login Succeeded" after successful authentication.

Verify Login

Check that you're logged in by pulling a test image or checking Docker's config:

# Linux/Mac
cat ~/.docker/config.json | grep registry.nugethosting.com

# Windows (PowerShell)
Get-Content $env:USERPROFILE\.docker\config.json | Select-String "registry.nugethosting.com"

Logout

To remove stored credentials:

docker logout registry.nugethosting.com

Troubleshooting

"unauthorized: authentication required"

Your token may be expired or invalid. Generate a new token from the Tokens page.

"denied: access forbidden"

Your token doesn't have the required scope. Ensure it has container:push or container:pull permission.

"Error response from daemon: Get... dial tcp... connection refused"

Check your network connection and ensure Docker daemon is running.

Was this page helpful?