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
Kazuhiko Shiozaki
gitlab-ce
Commits
8579fea2
Commit
8579fea2
authored
Dec 17, 2015
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add info on using private Docker registries in CI [ci skip]
parent
747f0a32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
doc/ci/docker/using_docker_images.md
doc/ci/docker/using_docker_images.md
+21
-2
No files found.
doc/ci/docker/using_docker_images.md
View file @
8579fea2
# Using Docker Images
# Using Docker Images
GitLab CI in conjuction with
[
GitLab Runner
](
../runners/README.md
)
can use
GitLab CI in conju
n
ction with
[
GitLab Runner
](
../runners/README.md
)
can use
[
Docker Engine
](
https://www.docker.com/
)
to test and build any application.
[
Docker Engine
](
https://www.docker.com/
)
to test and build any application.
Docker is an open-source project that allows you to use predefined images to
Docker is an open-source project that allows you to use predefined images to
run applications in independent "containers" that are run within a single Linux
run applications in independent "containers" that are run within a single Linux
instance.
[
Docker Hub
][
hub
]
has a rich database of prebuilt images that can be
instance.
[
Docker Hub
][
hub
]
has a rich database of pre
-
built images that can be
used to test and build your applications.
used to test and build your applications.
Docker, when used with GitLab CI, runs each build in a separate and isolated
Docker, when used with GitLab CI, runs each build in a separate and isolated
...
@@ -136,6 +136,24 @@ Look for the `[runners.docker]` section:
...
@@ -136,6 +136,24 @@ Look for the `[runners.docker]` section:
The image and services defined this way will be added to all builds run by
The image and services defined this way will be added to all builds run by
that runner.
that runner.
## Define an image from a private Docker registry
Starting with GitLab Runner 0.6.0, you are able to define images located to
private registries that could also require authentication.
All you have to do is be explicit on the image definition in
`.gitlab-ci.yml`
.
```
yaml
image
:
my.registry.tld:5000/namepace/image:tag
```
In the example above, GitLab Runner will look at
`my.registry.tld:5000`
for the
image
`namespace/image:tag`
.
If the repository is private you need to authenticate your GitLab Runner in the
registry. Learn how to do that on
[
GitLab Runner's documentation
][
runner-priv-reg
]
.
## Accessing the services
## Accessing the services
Let's say that you need a Wordpress instance to test some API integration with
Let's say that you need a Wordpress instance to test some API integration with
...
@@ -258,3 +276,4 @@ creation.
...
@@ -258,3 +276,4 @@ creation.
[
tutum/wordpress
]:
https://registry.hub.docker.com/u/tutum/wordpress/
[
tutum/wordpress
]:
https://registry.hub.docker.com/u/tutum/wordpress/
[
postgres-hub
]:
https://registry.hub.docker.com/u/library/postgres/
[
postgres-hub
]:
https://registry.hub.docker.com/u/library/postgres/
[
mysql-hub
]:
https://registry.hub.docker.com/u/library/mysql/
[
mysql-hub
]:
https://registry.hub.docker.com/u/library/mysql/
[
runner-priv-reg
]:
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/configuration/advanced-configuration.md#using-a-private-docker-registry
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