So, I started out with a base jenkins image. I configured it by adding a number of plugins, adding a pipeline script, configured it for git and maven, and also changed the jdk (switched from open jdk) at some point. I realized I needed a data container to attach to my container to share some output files, but docker does not allow you to attach data volume containers to existing containers (which would have been awesome) so i decided to commit my container as a different image.
docker commit does not spit out any error, just the id/name of the new image. I use vanilla
docker run with the additional
When I attach a terminal to my container afterwards, I don’t see any of the libraries jenkins had downloaded, nor do i find the new jdk or other config files i changed.