Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose volume data path for attaching a volume to the container to have data persistence. #329

Open
ochanig33 opened this issue May 7, 2019 · 0 comments

Comments

@ochanig33
Copy link

Currently we do not have a provision to persist the data. Container gone, data gone.

I want to keep my data storage no matter if we delete the container, data should still be there.

Reference: Please take a look on jenkins where they exposed the path which can be used to mount on your volume. If user deletes the container, data will still be there.

How to use jenkins image:
docker run -p 8080:8080 -p 50000:50000 jenkins
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):

docker run -p 8080:8080 -p 50000:50000 -v /your/home:/var/jenkins_home jenkins

Link: https://hub.docker.com/_/jenkins

@ochanig33 ochanig33 changed the title Add volume path for attaching the volume to the container to have data persistence. Expose volume data path for attaching a volume to the container to have data persistence. May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant