Docker Login
Authenticate with NugetHosting's container registry to push and pull images.
Prerequisites
Before you begin, ensure you have:
- Docker installed and running
- A NugetHosting account with Container Registry access
- An API token with
container:pushorcontainer:pullscope
💡 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_TOKENOr 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.comTroubleshooting
"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.