Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
docker-registry
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docker-registry
Commits
b30ae2b3
Commit
b30ae2b3
authored
Oct 21, 2021
by
liugaoling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update data dir
parent
02091fb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
docker-compose.yml
conf/docker-compose.yml
+1
-1
No files found.
README.md
View file @
b30ae2b3
# docker-registry
1.
登录需要部署的服务器
2.
创建需要保存的数据的data目录,仓库文件可能过大,建议使用挂载(正常fileserver mkdir -p /
public
/registry/data)
2.
创建需要保存的数据的data目录,仓库文件可能过大,建议使用挂载(正常fileserver mkdir -p /
mnt
/registry/data)
3.
目录在docker-compose.yml文件中指定
4.
然后需要使用HTTPS,就需要证书文件,也在docker-compose.yml中配置
5.
在conf目录中,docker-compose up -d 即可
...
...
conf/docker-compose.yml
View file @
b30ae2b3
...
...
@@ -6,7 +6,7 @@ services:
-
"
5000:5000"
volumes
:
-
/root/ssl_certificate:/ssl:ro
-
/
public
/registry/data:/data
-
/
mnt
/registry/data:/data
restart
:
always
environment
:
-
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment