🐳 Pushing to the GitLab Container Registry
Follow these steps to push your Docker images to our self-hosted GitLab instance.
🚀 1. Sign in to the GitLab instance
- Open https://dockerdex.umcn.nl
- Click “Sign in with GitHub”
- Complete your profile if prompted
📦 2. Set up your project
If your Docker image is tied to a GitHub repository:
- Go to “New Project” → “Import Project” → “GitHub”
- Paste your GitHub Personal Access Token (PAT) with at least the
repo
scope - Select your project to import
If your project doesn't exist on GitHub:
- If you plan to attach code to this project, consider creating it on GitHub first and then importing it into GitLab. This ensures everything is tracked in one place.
- If this project is only for storing Docker images and has no code attached, feel free to create a blank project directly in GitLab:
- Go to “New Project”
- Create a blank project with the appropriate name
🔐 3. Log in to the GitLab Container Registry
Run:
docker logout dockerdex.umcn.nl:5005 # reset previously stored credentials
docker login dockerdex.umcn.nl:5005
- Username: your GitLab username
- Password: your GitLab Personal Access Token with
read_registry
andwrite_registry
scopes
🏷️ 4. Tag your Docker image
docker tag <local-image-name> dockerdex.umcn.nl:5005/<username>/<project-name>:<tag>
Example:
docker tag my-slide2vec-image dockerdex.umcn.nl:5005/clemsgrs/slide2vec:1.0
📤 5. Push your image
docker push dockerdex.umcn.nl:5005/<username>/<project-name>:<tag>
You’ll find it under Packages & Registries → Container Registry in your GitLab project.
We recommend you pin the Container Registry in your side bar so you can find it more easily next time.
🧠 Notes
- Use a PAT, not your password, to authenticate
- Make sure the PAT has
write_registry
permission - You can only push to projects you own or have
Maintainer
access to