Description
Base Oracle DB images container-registry.oracle.com/database/enterprise:12.2.0.1
and container-registry.oracle.com/database/enterprise:12.2.0.1-slim
have the following volume mount declared:
VOLUME ["/ORCL"]
Because there is no way to remove or unset a volume when extending an image, this basically prevents me from being able to create an image pre-loaded with a test or dev database.
Even if you unpack, setup, configure, and load a database, it just disappears after that Dockerfile line ends.
There are no benefits to declaring a volume line in a dockerfile. Even if you do, the client still has to declare a volume anyway to make any use of it (for example, by declaring it in a run statement or in their docker-compose.yaml file). And removing this line will have no effect, because the client can still create a volume anytime they want to be putting it in their run statement or docker-compose file.
Can you please remove the volume mount declaration from the base image?