2016-06-02 11:05:42 +05:30
|
|
|
- page_title "Container Registry"
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%ul.content-list
|
|
|
|
%li.light.prepend-top-default
|
|
|
|
%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-08-17 22:00:37 +05:30
|
|
|
docker build -t #{escape_once(@project.container_registry_url)}/image .
|
2016-06-02 11:05:42 +05:30
|
|
|
%br
|
2017-08-17 22:00:37 +05:30
|
|
|
docker push #{escape_once(@project.container_registry_url)}/image
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
- if @images.blank?
|
|
|
|
.nothing-here-block No container image repositories in Container Registry for this project.
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
- else
|
2017-08-17 22:00:37 +05:30
|
|
|
= render partial: 'image', collection: @images
|