
konradkleine/docker-registry-frontendThe docker-registry-frontend is a browser-based solution for browsing and modifying a private Docker registry.
 , you can run the following command:
sudo docker run \ -d \ -e ENV_DOCKER_REGISTRY_HOST=ENTER-YOUR-REGISTRY-HOST-HERE \ -e ENV_DOCKER_REGISTRY_PORT=ENTER-PORT-TO-YOUR-REGISTRY-HOST-HERE \ -e ENV_DOCKER_REGISTRY_USE_SSL=1 \ -p 8080:80 \ konradkleine/docker-registry-frontend:v2
If you want to run the application with SSL enabled, you can do the following:
sudo docker run \ -d \ -e ENV_DOCKER_REGISTRY_HOST=ENTER-YOUR-REGISTRY-HOST-HERE \ -e ENV_DOCKER_REGISTRY_PORT=ENTER-PORT-TO-YOUR-REGISTRY-HOST-HERE \ -e ENV_USE_SSL=yes \ -v $PWD/server.crt:/etc/apache2/server.crt:ro \ -v $PWD/server.key:/etc/apache2/server.key:ro \ -p 443:443 \ konradkleine/docker-registry-frontend:v2
Note that the application still serves the port 80 but it is simply not exposed ;). Enable it at your own will. When the application runs with SSL you can open your browser and navigate to https://localhost.
If you are running the Docker registry on the same host as the application but only accessible to the application (eg. listening on 127.0.0.1) then you can use the application as the registry itself.
Normally this would then give bad advice on how to access a tag:
docker pull localhost:5000/yourname/imagename:latest
We can override what hostname and port to put here:
sudo docker run \ -d \ -e ENV_DOCKER_REGISTRY_HOST=localhost \ -e ENV_DOCKER_REGISTRY_PORT=5000 \ -e ENV_REGISTRY_PROXY_FQDN=ENTER-YOUR-APPLICATION-HOST-HERE \ -e ENV_REGISTRY_PROXY_PORT=ENTER-PORT-TO-YOUR-APPLICATION-HOST-HERE \ -e ENV_USE_SSL=yes \ -v $PWD/server.crt:/etc/apache2/server.crt:ro \ -v $PWD/server.key:/etc/apache2/server.key:ro \ -p 443:443 \ konradkleine/docker-registry-frontend:v2
A value of 80 or 443 for ENV_REGISTRY_PROXY_PORT will not actually be shown as Docker will check 443 and then 80 by default.
If you want to use Kerberos to protect access to the registry frontend, you can do the following:
sudo docker run \ -d \ -e ENV_DOCKER_REGISTRY_HOST=ENTER-YOUR-REGISTRY-HOST-HERE \ -e ENV_DOCKER_REGISTRY_PORT=ENTER-PORT-TO-YOUR-REGISTRY-HOST-HERE \ -e ENV_AUTH_USE_KERBEROS=yes \ -e ENV_AUTH_NAME="Kerberos login" \ -e ENV_AUTH_KRB5_KEYTAB=/etc/apache2/krb5.keytab \ -v $PWD/krb5.keytab:/etc/apache2/krb5.keytab:ro \ -e ENV_AUTH_KRB_REALMS="ENTER.YOUR.REALMS.HERE" \ -e ENV_AUTH_KRB_SERVICE_NAME=HTTP \ -p 80:80 \ konradkleine/docker-registry-frontend:v2
You can of course combine SSL and Kerberos.
If you want to start applicaton with browse mode which means no repos/tags management feature in the UI, You can specify ENV_MODE_BROWSE_ONLY flag as follows:
sudo docker run \ -d \ -e ENV_DOCKER_REGISTRY_HOST=ENTER-YOUR-REGISTRY-HOST-HERE \ -e ENV_DOCKER_REGISTRY_PORT=ENTER-PORT-TO-YOUR-REGISTRY-HOST-HERE \ -e ENV_MODE_BROWSE_ONLY=true \ -p 8080:80 \ konradkleine/docker-registry-frontend:v2
You can set true or false to this flag.
NOTE For now ENV_MODE_BROWSE_ONLY will be overwritten to true.
By default 20 repositories will be listed per page. To adjust this number, to
let's say 50 pass -e ENV_DEFAULT_REPOSITORIES_PER_PAGE=50 to your docker run
command.
If you like the application, I invite you to contribute and report bugs or feature request on the project's github page: [***]. To learn how to develop for the docker-registry-frontend, see here.
Thank you for your interest!
-- Konrad


探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务