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
Jérome Perrin
gitlab-ce
Commits
d9362ded
Commit
d9362ded
authored
Jun 01, 2017
by
Achilleas Pipinellis
Committed by
Kamil Trzciński
Jun 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Improve Container Registry description"
parent
42c13b26
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
22 deletions
+58
-22
app/views/projects/registry/repositories/index.html.haml
app/views/projects/registry/repositories/index.html.haml
+53
-19
changelogs/unreleased/30651-improve-container-registry-description.yml
...released/30651-improve-container-registry-description.yml
+4
-0
doc/user/project/container_registry.md
doc/user/project/container_registry.md
+0
-2
doc/user/project/img/container_registry_panel.png
doc/user/project/img/container_registry_panel.png
+0
-0
spec/features/container_registry_spec.rb
spec/features/container_registry_spec.rb
+1
-1
No files found.
app/views/projects/registry/repositories/index.html.haml
View file @
d9362ded
-
page_title
"Container Registry"
%hr
.row.prepend-top-default.append-bottom-default
.col-lg-3
%h4
.prepend-top-0
=
page_title
%p
With the Docker Container Registry integrated into GitLab, every project
can have its own space to store its Docker images.
%p
.append-bottom-0
=
succeed
'.'
do
Learn more about
=
link_to
'Container Registry'
,
help_page_path
(
'user/project/container_registry'
),
target:
'_blank'
%ul
.content-list
%li
.light.prepend-top-default
.col-lg-9
.panel.panel-default
.panel-heading
%h4
.panel-title
How to use the Container Registry
.panel-body
%p
A 'container image' is a snapshot of a container.
You can host your container images with GitLab.
%br
To start using container images hosted on GitLab you first need to login:
First log in to GitLab
’
s Container Registry using your GitLab username
and password. If you have
=
link_to
'2FA enabled'
,
help_page_path
(
'user/profile/account/two_factor_authentication'
),
target:
'_blank'
you need to use a
=
succeed
':'
do
=
link_to
'personal access token'
,
help_page_path
(
'user/profile/account/two_factor_authentication'
,
anchor:
'personal-access-tokens'
),
target:
'_blank'
%pre
%code
docker login
#{
Gitlab
.
config
.
registry
.
host_port
}
%br
Then you are free to create and upload a container image with build and push commands:
%p
Once you log in, you
’
re free to create and upload a container image
using the common
%code
build
and
%code
push
commands:
%pre
docker build -t
#{
escape_once
(
@project
.
container_registry_url
)
}
/image .
%br
docker push
#{
escape_once
(
@project
.
container_registry_url
)
}
/image
:plain
docker build -t
#{
escape_once
(
@project
.
container_registry_url
)
}
.
docker push
#{
escape_once
(
@project
.
container_registry_url
)
}
-
if
@images
.
blank?
.nothing-here-block
No container image repositories in Container Registry for this project.
%hr
%h5
.prepend-top-default
Use different image names
%p
.light
GitLab supports up to 3 levels of image names. The following
examples of images are valid for your project:
%pre
:plain
#{
escape_once
(
@project
.
container_registry_url
)
}
:tag
#{
escape_once
(
@project
.
container_registry_url
)
}
/optional-image-name:tag
#{
escape_once
(
@project
.
container_registry_url
)
}
/optional-name/optional-image-name:tag
-
if
@images
.
blank?
%p
.settings-message.text-center.append-bottom-default
No container images stored for this project. Add one by following the
instructions above.
-
else
=
render
partial:
'image'
,
collection:
@images
changelogs/unreleased/30651-improve-container-registry-description.yml
0 → 100644
View file @
d9362ded
---
title
:
Add changelog for improved Registry description
merge_request
:
11816
author
:
doc/user/project/container_registry.md
View file @
d9362ded
...
...
@@ -95,8 +95,6 @@ and click **Registry** in the project menu.
This view will show you all tags in your project and will easily allow you to
delete them.
![
Container Registry panel
](
img/container_registry_panel.png
)
## Build and push images using GitLab CI
> **Note:**
...
...
doc/user/project/img/container_registry_panel.png
deleted
100644 → 0
View file @
42c13b26
31.6 KB
spec/features/container_registry_spec.rb
View file @
d9362ded
...
...
@@ -19,7 +19,7 @@ describe "Container Registry" do
scenario
'user visits container registry main page'
do
visit_container_registry
expect
(
page
).
to
have_content
'No container image
repositorie
s'
expect
(
page
).
to
have_content
'No container images'
end
end
...
...
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