Setting up docker registry on OpenBSD pkg_add -vvi go go get github.com/docker/distribution/cmd/registry export GOPATH=~/go mkdir /mnt/registry export REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/mnt/registry $GOPATH/bin/registry --version $GOPATH/bin/registry serve $GOPATH/src/github.com/docker/distribution/cmd/registry/config-example.yml Garbage collection $GOPATH/bin/registry garbage-collect [--dry-run] /path/to/config.yml Sample config.yml version: 0.1 log: fields: service: registry storage: delete: enabled: true cache: blobdescriptor: inmemory filesystem: rootdirectory: /registry/registry http: addr: 0.0.0.0:5000 headers: X-Content-Type-Options: [nosniff] #auth: # htpasswd: # realm: basic-realm # path: /etc/registry health: storagedriver: enabled: true interval: 10s threshold: 3