Closed nobusugi246 closed 8 years ago
Jenkins persists all state to a volume declared in the Dockerfile. Writes to volumes are not persisted in images, which is what a commit creates.
Could this be solved by removing the declaration /var/jenkins_home
as a volume?
This being said, mounting /var/jenkins_home
as a volume should be strongly recommended for data persistence beyond the lifespan of a single container. The use of docker commit
to persist data and configuration should be considered a Docker anti-pattern.
@dweomer Thank you. I got it. @gotgenes I think removing the declaration /var/jenkins_home as a volume will solve this. This is a spec of Docker.
As @dweomer said, changes to the volume are not persisted, and commit is an anti-pattern
This is docker logs of jenkins_configured:2.10.
OS X 10.11.5, Docker version 1.11.1, build 5604cbe Best Regards.