Configure private registries #98
Replies: 5 comments 2 replies
-
I just need to authenticate with Docker Hub to avoid the rate limit. I'm updating a few containers and I hit the limit for anonymous users very quickly. I believe implementing this feature would also address my problem. |
Beta Was this translation helpful? Give feedback.
-
+1 First, thanks a lot for creating Dockge 👍🏻! Being able to integrate authentication - i.e.: GitHub with personal access tokens - would be great to manage Docker images in the container registry using the package namespace, straight from the Dockge UI.
|
Beta Was this translation helpful? Give feedback.
-
This is impossible to work without.. Any updates on this? |
Beta Was this translation helpful? Give feedback.
-
Hello, any news on this ? |
Beta Was this translation helpful? Give feedback.
-
OK here's how to make this work: When Dockge runs the docker command, docker looks in the default location for a configuration, which is Let's say you're image is on a private ghcr. Here's what the config should look like: {
"auths": {
"ghcr.io": {
"auth": "Z2l0aHViVXNlcjpnaXRodWJfdG9rZW4="
}
}
} The auth should be a base 64 encoding of your github username and a personal access token. At time of writing, you have to use a classic PAT because the fine grained ones don't support packages yet. The token needs echo -n 'GITHUB_USERNAME:PAT' | base64 Once you have your json, drop it wherever you like on your host. Personally I just put it adjacent to the services:
dockge:
image: louislam/dockge:1
restart: unless-stopped
ports:
- 5001:5001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data
- /opt/stacks:/opt/stacks
- ./config.json:/root/.docker/config.json:ro
environment:
- DOCKGE_STACKS_DIR=/opt/stacks After that, just run |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I try to pull an image from my private GHCR it fails. The same stack works in Portainer where I setup my GHCP.
An option to configure private registries would be nice 👍
Beta Was this translation helpful? Give feedback.
All reactions