Commit b1221669 authored by Matej's avatar Matej

Service hostname also include registry name, when using non Docker Hub registry.

parent ce6bc061
...@@ -173,6 +173,18 @@ When the job is run, `tutum/wordpress` will be started and you will have ...@@ -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` access to it from your build container under the hostnames `tutum-wordpress`
(requires GitLab Runner v1.1.0 or newer) and `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.* *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 The alias hostnames for the service are made from the image name following these
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment