Commit dcb5508b authored by Cody West's avatar Cody West

Update Docker register example

Switched path to give an actual example. Additionally added a note 
that the Docker register command will destroy the container.
parent 1f469ba4
......@@ -236,12 +236,15 @@ To register a Runner under FreeBSD:
To register a Runner using a Docker container:
1. Run the following command which will mount the Runner's config directory
under `/path/to/config`:
under `/srv/gitlab-runner/config`:
```sh
docker run --rm -t -i -v /path/to/config:/etc/gitlab-runner --name gitlab-runner gitlab/gitlab-runner register
docker run --rm -t -i -v /srv/gitlab-runner/config:/etc/gitlab-runner --name gitlab-runner gitlab/gitlab-runner register
```
NOTE: **Note:**
This will only register and then exit/destroy the container.
1. Enter your GitLab instance URL:
```
......
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