From a373a7e4976c1d06334720525d6412803061d995 Mon Sep 17 00:00:00 2001 From: Guillaume Briday <guillaumebriday@gmail.com> Date: Sun, 22 Sep 2019 09:19:04 +0200 Subject: [PATCH] docs: Improve self-hosting examples (#4513) --- docs/development/self-hosting.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/development/self-hosting.md b/docs/development/self-hosting.md index ff24381a83..4ebb8b936f 100644 --- a/docs/development/self-hosting.md +++ b/docs/development/self-hosting.md @@ -17,15 +17,19 @@ $ npm install -g renovate Renovate is available for Docker via an automated build [renovate/renovate](https://hub.docker.com/r/renovate/renovate/). It builds `latest` based on the `master` branch and all semver tags are published too. All the following are valid: ``` -$ docker run renovate/renovate -$ docker run renovate/renovate:13.1.1 -$ docker run renovate/renovate:13.1 -$ docker run renovate/renovate:13 +$ docker run --rm renovate/renovate +$ docker run --rm renovate/renovate:13.1.1 +$ docker run --rm renovate/renovate:13.1 +$ docker run --rm renovate/renovate:13 ``` (Please look up what the latest actual tags are though, do not use the above literally). -If you wish to configure Renovate using a `config.js` file then map it to `/usr/src/app/config.js` using Docker volumes. +If you wish to configure Renovate using a `config.js` file then map it to `/usr/src/app/config.js` using Docker volumes. For example: + +``` +$ docker run --rm -v "/path/to/your/config.js:/usr/src/app/config.js" renovate/renovate +``` #### Kubernetes -- GitLab