diff options
author | Matej <matej@zunaj.si> | 2017-05-26 09:30:51 +0000 |
---|---|---|
committer | Matej <matej@zunaj.si> | 2017-05-26 09:30:51 +0000 |
commit | b1221669168e781c534f6aa7a31bdd087dcc97a7 (patch) | |
tree | b4f9e1e96603387e556dbf61d17b13b3b554e315 /doc | |
parent | ce6bc061b1375e85a984887606eccb506b1c44f9 (diff) | |
download | gitlab-ce-b1221669168e781c534f6aa7a31bdd087dcc97a7.tar.gz |
Service hostname also include registry name, when using non Docker Hub registry.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ci/docker/using_docker_images.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/ci/docker/using_docker_images.md b/doc/ci/docker/using_docker_images.md index 96834e15bb9..43a37e3ba1a 100644 --- a/doc/ci/docker/using_docker_images.md +++ b/doc/ci/docker/using_docker_images.md @@ -173,6 +173,18 @@ When the job is run, `tutum/wordpress` will be started and you will have access to it from your build container under the hostnames `tutum-wordpress` (requires GitLab Runner v1.1.0 or newer) and `tutum__wordpress`. +When using private registry, image name usually also include hostname and port +of the registry. + +```yaml +services: +- docker.example.com:5000/wordpress:latest +``` + +In this case, hostname will also include registry's hostname. Service will be +available under hostnames `docker.example.com-wordpress` (requires GitLab Runner v1.1.0 or newer) +and `docker.example.com__wordpress`. + *Note: hostname with underscores is not RFC valid and may cause problems in 3rd party applications.* The alias hostnames for the service are made from the image name following these |