Comments (4)
+1 - Cannot manage to make this work. Show stopper.
from docker.
This is by design - docker official image repos suggest NOT placing volume in the Dockerfile - as it can't be removed by dependent dockerfiles. You can have a Dockerfile with FROM jenkins at the top - and then VOLUME as needed.
However - using -v /local/path:/internal/path is a different issue (the PR) - I get the feeling there is general confusion with how docker works. Putting -v /volume/here is the same as VOLUME in dockerfile (wthout the limitations) - which is different again to -v /host/path:/volume/here.
from docker.
Hi,
can you put a reference to the suggestion of not placing volumes in the Dockerfiles?
It's true, volumes can't be removed by dependent Dockerfiles, but that's by design. I can't think of a use case that it is necessary to keep the data inside a living jenkins container, that would break any possible upgrading patterns.
In general, most official repos do have a volume defined, so that the data are stored separately from the container. I put some examples below:
my 2cents
from docker.
It was in an email from official image approvers.
If those other ones are doing it, then we should here too, I agree.
The main problem is that people aren't reading the docs on docker volume
management.
On Saturday, September 27, 2014, spiddy [email protected] wrote:
Hi,
can you put a reference to the suggestion of not placing volumes in the
Dockerfiles?It's true, volumes can't be removed by dependent Dockerfiles, but that's
by design. I can't think of a use case that it is necessary to keep the
data inside a living jenkins container, that would break any possible
upgrading patterns. (In general, most official repos do have a volume defined, so that the data
are stored separately from the container. I put some examples below:
- Redis Dockerfile
https://github.com/docker-library/redis/blob/ffb29617e5dcfe71adf67842d18063c410beede7/2.8.9/Dockerfile- Mysql Dockerfile
https://github.com/docker-library/mysql/blob/7461a52b43f06839a4d8723ae8841f4cb616b3d0/5.7/Dockerfile- Postgres Dockerfile
https://github.com/docker-library/postgres/blob/33b8046b5f68b465a3c04fcc428e8923bcb7cd12/9.3/Dockerfilemy 2cents
—
Reply to this email directly or view it on GitHub
#9 (comment)
.
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com
from docker.
Related Issues (20)
- The master Jenkins of the latest LTS JDK17 version reports an error when using SSH to connect to a slave node HOT 2
- Latest alpine image uses unsupported JRE HOT 16
- Latest alpine based images using 3.9 alpine repo instead of 3.18 HOT 5
- apt fails on fips-enabled hosts HOT 6
- apt-get update fails with signatures couldn't be verified because the public key is not available HOT 6
- windowsservercore-2019 image not updated HOT 5
- Ship production build of Java 21 from Eclipse Temurin HOT 3
- Upgrade curl to >=8.4.0 to fix CVE-2023-38545 HOT 3
- CVE-2023-38039, CVE-2023-38408, CVE-2023-38039, CVE-2023-38039, CVE-2023-44487 HOT 4
- Unexpected loss of more precise labels in favor of less precise labels HOT 13
- The directory separator used in the Windows build script is dependent on the OS
- latest with jdk17 & almalinux HOT 2
- Update Docker Hub description with JDK17 images instead of JDK11 HOT 2
- Set JDK17 as the default JDK for Windows image
- Publish a Windows image for each supported Java version HOT 2
- `windowsservercore-2019` images use `windowsservercore-1809` as base image HOT 2
- Windows - There should be a set of weekly and LTS short tags not including Jenkins version in their names HOT 4
- After Jenkins docks with ldap, the first login the next day will display a password error. The second login will be successful, and submitting the pipeline using Jenkins' API will fail. Jenkins logs indicate that the connection to ldap has timed out
- JenkinsProject
- `jenkins-plugin-cli` reports `War not found, installing all plugins: /usr/share/java/jenkins.war` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.