Skip to content

ebeigarts/dokku-private-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dokku Private Registry

Private registry server deployed as a dokku app with HTTP Basic auth using AUTH_USER and AUTH_PASSWORD env variables.

Setup

dokku apps:create my-registry
dokku config:set my-registry REGISTRY_HTTP_SECRET=$(openssl rand -hex 64)
dokku config:set my-registry AUTH_USER=user AUTH_PASSWORD=$(openssl rand -hex 16)
dokku storage:mount my-registry /var/lib/dokku/data/storage/my-registry:/var/lib/registry
dokku ps:set-restart-policy my-registry unless-stopped
dokku domains:add my-registry my-registry.example.com
dokku letsencrypt my-registry

Deploy

git remote add dokku dokku@dokku.example.com:my-registry
git push dokku master

Test

docker login -u user -p password my-registry.example.com

docker pull busybox:latest
docker tag busybox:latest my-registry.example.com/user/busybox:latest
docker push my-registry.example.com/user/busybox:latest
docker rmi busybox:latest my-registry.example.com/user/busybox:latest
docker pull my-registry.example.com/user/busybox:latest

Garbage Collect

dokku run my-registry /bin/registry garbage-collect /app/config.yml

About

Private docker registry server deployed as a dokku app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published