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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
8b8cef4c
Commit
8b8cef4c
authored
Jun 20, 2016
by
DJ Mountney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation and examples for configuring cloud storage for registry images.
parent
0e987ee7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
2 deletions
+73
-2
doc/administration/container_registry.md
doc/administration/container_registry.md
+73
-2
No files found.
doc/administration/container_registry.md
View file @
8b8cef4c
...
...
@@ -22,6 +22,7 @@ You can read more about Docker Registry at https://docs.docker.com/registry/intr
-
[
Disable Container Registry per project
](
#disable-container-registry-per-project
)
-
[
Disable Container Registry for new projects site-wide
](
#disable-container-registry-for-new-projects-site-wide
)
-
[
Container Registry storage path
](
#container-registry-storage-path
)
-
[
Container Registry storage driver
](
#container-registry-storage-driver
)
-
[
Storage limitations
](
#storage-limitations
)
-
[
Changelog
](
#changelog
)
...
...
@@ -306,8 +307,12 @@ the Container Registry by themselves, follow the steps below.
## Container Registry storage path
To change the storage path where Docker images will be stored, follow the
steps below.
>**Note:**
For configuring storage in the cloud instead of the filesystem, see the
[
storage driver configuration
](
#container-registry-storage-driver
)
.
If you want to store your images on the filesystem, you can change the storage
path for the Container Registry, follow the steps below.
This path is accessible to:
...
...
@@ -349,6 +354,72 @@ The default location where images are stored in source installations, is
1.
Save the file and
[
restart GitLab
][]
for the changes to take effect.
## Container Registry storage driver
You can configure the Container Registry to use a different storage backend by
configuring a different storage driver. By default the GitLab Container Registry
is configured to use the filesystem driver, which makes use of
[
storage path
](
#container-registry-storage-path
)
configuration.
The different supported drivers are:
| Driver | Description |
|------------|-------------------------------------|
| filesystem | Uses a path on the local filesystem |
| azure | Microsoft Azure Blob Storage |
| gcs | Google Cloud Storage |
| s3 | Amazon Simple Storage Service |
| swift | OpenStack Swift Object Storage |
| oss | Aliyun OSS |
Read more about the individual driver's config options in the
[
Docker Registry docs
][
storage-config
]
.
> **Warning** GitLab will not backup Docker images that are not stored on the
filesystem. Remember to enable backups with your object storage provider if
desired.
---
**Omnibus GitLab installations**
To configure the storage driver in Omnibus:
1.
Edit
`/etc/gitlab/gitlab.rb`
:
```ruby
registry['storage'] = {
's3' => {
'accesskey' => 's3-access-key',
'secretkey' => 's3-secret-key-for-access-key',
'bucket' => 'your-s3-bucket'
}
}
```
1.
Save the file and
[
reconfigure GitLab
][]
for the changes to take effect.
---
**Installations from source**
Configuring the storage driver is done in your registry config YML file created
when you
[
deployed your docker registry
][
registry-deploy
]
.
Example:
```
storage:
s3:
accesskey: 'AKIAKIAKI'
secretkey: 'secret123'
bucket: 'gitlab-registry-bucket-AKIAKIAKI'
cache:
blobdescriptor: inmemory
delete:
enabled: true
```
## Storage limitations
Currently, there is no storage limitation, which means a user can upload an
...
...
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