-
Notifications
You must be signed in to change notification settings - Fork 5.5k
dpdump deleted on initial startup #2933
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
Comments
@AlBundy33 the path set for the
or:
These reference directories that don't exist in the image and therefore aren't overwritten. |
but there was an error from rm on startup and afaik docker does not deletes volumes because this would mean that your volumes get deleted on each startup |
because I've used an image from docker registry I'm not sure that this is the right repo for this issue |
@AlBundy33 Docker won't delete the contents of the volume. When you mount a volume to an existing directory, the contents of the directory in the image are replaced by the mounted volume. But neither of those situations explains the lost files. My first thought was that you had something in your I created directories on my system and added a file:
The file is present, so I created a new container:
After it started, the above file was indeed gone. I checked the logs and saw that the Database Creation Assistant (DBCA) is responsible:
The Further confirmation is visible in the date/times on the directories created under
However, the
As are its subdirectories:
My original advice was to create a directory under the
The directory remains, but container startup complains and its contents are purged:
My recommendation for working around this is:
|
using another directory means that we have to create a directory in the db (create directory dpdump as '/dpdump') |
This directory is (re)created every time a new database instance is added since its path is only known after the SID is given to DBCA. If you don't want to create a custom directory (via SQL, Re: "Is the directory deleted every time you pull a new image?" It depends.
You can use this to clone a database (say, for a dev/qa environment) as follows (commands simplified for clarity):
For 21c Express Edition (or 23ai FREE Edition) the |
with this docker-compose file the dumps in the dpdump-folder will be deleted on first startup.
folders are owned by 54321:54321
The text was updated successfully, but these errors were encountered: