2016-05-08 16:50:30 -04:00
|
|
|
- page_title "Container Registry"
|
2016-04-18 08:14:40 -04:00
|
|
|
|
2016-05-04 10:17:35 -04:00
|
|
|
%hr
|
2016-04-18 08:14:40 -04:00
|
|
|
|
|
|
|
%ul.content-list
|
2016-05-20 19:43:11 -04:00
|
|
|
%li.light.prepend-top-default
|
2016-05-16 19:07:37 -04:00
|
|
|
%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:
|
|
|
|
%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:
|
|
|
|
%pre
|
|
|
|
docker build -t #{escape_once(@project.container_registry_repository_url)} .
|
|
|
|
%br
|
|
|
|
docker push #{escape_once(@project.container_registry_repository_url)}
|
|
|
|
|
2016-04-18 08:14:40 -04:00
|
|
|
- if @tags.blank?
|
|
|
|
%li
|
2016-05-09 15:27:06 -04:00
|
|
|
.nothing-here-block No images in Container Registry for this project.
|
|
|
|
|
2016-04-18 08:14:40 -04:00
|
|
|
- else
|
|
|
|
.table-holder
|
2016-05-09 16:32:18 -04:00
|
|
|
%table.table.tags
|
2016-04-18 08:14:40 -04:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
2016-05-09 15:27:06 -04:00
|
|
|
%th Image ID
|
2016-04-18 08:14:40 -04:00
|
|
|
%th Size
|
|
|
|
%th Created
|
2016-05-14 19:26:26 -04:00
|
|
|
- if can?(current_user, :update_container_image, @project)
|
2016-05-12 14:03:04 -04:00
|
|
|
%th
|
2016-04-18 08:14:40 -04:00
|
|
|
|
2016-05-04 08:22:54 -04:00
|
|
|
- @tags.each do |tag|
|
2016-05-26 11:58:44 -04:00
|
|
|
= render 'tag', tag: tag
|