Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
f896a4e0
Commit
f896a4e0
authored
May 22, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor storage location section
parent
f55f6285
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
24 deletions
+34
-24
doc/administration/container_registry.md
doc/administration/container_registry.md
+34
-24
No files found.
doc/administration/container_registry.md
View file @
f896a4e0
...
@@ -319,39 +319,49 @@ the Container Registry by themselves, follow the steps below.
...
@@ -319,39 +319,49 @@ the Container Registry by themselves, follow the steps below.
## Container Registry storage path
## Container Registry storage path
It is possible to change path where containers will be stored by the Container
To change the storage path where Docker images will be stored, follow the
Registry
.
steps below
.
**Omnibus GitLab packages**
This path is accessible to:
-
the user running the Container Registry daemon,
-
the user running GitLab
-
and to the user running the Nginx web server.
> **Warning** You should confirm that all GitLab, Registry and web server users
have access to this directory.
---
---
By default, the path Container Registry is using to store the containers is in
**Omnibus GitLab installations**
`/var/opt/gitlab/gitlab-rails/shared/registry`
.
This path is accessible to the user running the Container Registry daemon,
user running GitLab and to the user running Nginx web server.
In
`/etc/gitlab/gitlab.rb`
:
The default location where images are stored in Omnibus, is
`/var/opt/gitlab/gitlab-rails/shared/registry`
. To change it:
```
ruby
1.
Edit
`/etc/gitlab/gitlab.rb`
:
gitlab_rails
[
'registry_path'
]
=
"/path/to/registry/storage"
```
```
```ruby
registry:
gitlab_rails['registry_path'] = "/path/to/registry/storage"
enabled: true
```
host: registry.gitlab.example.com
port: 5005
api_url: http://localhost:5000/
key_path: config/registry.key
path: shared/registry
issuer: gitlab-issuer
```
Save the file and
[
reconfigure GitLab
][]
for the changes to take effect.
1.
Save the file and
[
reconfigure GitLab
][]
for the changes to take effect.
**NOTE**
You should confirm that the GitLab, registry and the web server user
---
have access to this directory.
**Installations from source**
The default location where images are stored in source installations, is
`/home/git/gitlab/shared/registry`
. To change it:
1.
Open
`/home/git/gitlab/config/gitlab.yml`
, find the
`registry`
entry and
change the
`path`
setting:
```
registry:
path: shared/registry
```
1.
Save the file and
[
restart GitLab
][]
for the changes to take effect.
## Storage limitations
## Storage limitations
...
...
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