Skip to content

bakai-dev/docker-registry

Repository files navigation

Local | Private - Docker Registry

Private - Docker Registry

Start docker

Using makefile

make init

login: register password: password

http://localhost:500

Change password

Using htpasswd

htpasswd -c -B -b </path/to/htpasswd> <user_name> <password>

Show catalogs

http://localhost:5000/v2/_catalog

Push docker images

REGISTRY=localhost:5000 make push

Authorize to docker registry

docker login -u registry -p password localhost:5000

Install docker in server

with ansible in provisioning folder cd provisioning setup ssh host hosts.yml.dist > hosts.yml Install docker | certbot in server

make server

Setup ssh key

make authorize

Deploy

change 152.67.70.96 > your server address

HOST=152.67.70.96 PORT=22 make deploy HTPASSWD_FILE=htpasswd

Remove docker images

ssh deploy@152.67.70.96 -t "docker system prune -af"

Docker-registry Bcode URL

https://registry.bcode.kg/v2

Releases

No releases published

Packages

No packages published