Commit 02091fb0 authored by liugaoling's avatar liugaoling

updata data dir

parent a59d131a
# docker-registry
1. 登录需要部署的服务器
2. 创建需要保存的数据的data目录,仓库文件可能过大,建议使用挂载(正常fileserver mkdir -p /public/registry/data)
3. 目录在docker-compose.yml文件中指定
4. 然后需要使用HTTPS,就需要证书文件,也在docker-compose.yml中配置
5. 在conf目录中,docker-compose up -d 即可
如果修改了main中的go文件,就需重新编译(需要go环境)
编译:
cd conf/extensions
GOOS=linux GOARCH=386 go build ../../main/authentication.go
......
......@@ -6,7 +6,7 @@ services:
- "5000:5000"
volumes:
- /root/ssl_certificate:/ssl:ro
- ./data:/data
- /public/registry/data:/data
restart: always
environment:
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment