Skip to content

Commit 0ff9948

Browse files
committed
recommend using volume.
1 parent 1b45c44 commit 0ff9948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ http://jenkins-ci.org/
1515
docker run -p 8080:8080 jenkins
1616
```
1717

18-
This will store the workspace in /var/jenkins_home. All Jenkins data lives in there - including plugins and configuration. You will probably want to make that a persistent volume:
18+
This will store the workspace in /var/jenkins_home. All Jenkins data lives in there - including plugins and configuration. You will probably want to make that a persistent volume (recommended):
1919

2020
```
2121
docker run --name myjenkins -p 8080:8080 -v /var/jenkins_home jenkins
@@ -33,7 +33,7 @@ docker run -p 8080:8080 -v /your/home:/var/jenkins_home jenkins
3333

3434
## Backing up data
3535

36-
If you bind mount in a volume - you can simply back up that directory (which is jenkins_home) at any time.
36+
If you bind mount in a volume - you can simply back up that directory (which is jenkins_home) at any time. This is highly recommended. Treat the jenkins_home directory as you would a database - in Docker you would generally put a database on a volume.
3737

3838
If your volume is inside a container - you can use ```docker cp $ID:/var/jenkins_home``` command to extract the data.
3939

0 commit comments

Comments
 (0)