2016-05-08 20:50:30 +00:00
|
|
|
- page_title "Container Registry"
|
2016-04-18 12:14:40 +00:00
|
|
|
|
2016-05-04 14:17:35 +00:00
|
|
|
%hr
|
2016-04-18 12:14:40 +00:00
|
|
|
|
|
|
|
%ul.content-list
|
2016-05-20 23:43:11 +00:00
|
|
|
%li.light.prepend-top-default
|
2016-05-16 23:07:37 +00: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
|
2017-01-25 12:02:09 +00:00
|
|
|
docker build -t #{escape_once(@project.container_registry_url)}/image .
|
2016-05-16 23:07:37 +00:00
|
|
|
%br
|
2017-01-25 12:02:09 +00:00
|
|
|
docker push #{escape_once(@project.container_registry_url)}/image
|
2016-05-16 23:07:37 +00:00
|
|
|
|
2016-11-23 16:50:30 +00:00
|
|
|
- if @images.blank?
|
2017-04-04 09:52:56 +00:00
|
|
|
.nothing-here-block No container image repositories in Container Registry for this project.
|
2016-05-09 19:27:06 +00:00
|
|
|
|
2016-04-18 12:14:40 +00:00
|
|
|
- else
|
2017-03-21 13:35:02 +00:00
|
|
|
= render partial: 'image', collection: @images
|