How to prevent container from starting successfully if mount point doesn't exist?

exp

New Member
Jul 20, 2023
19
0
1
I configured various bind mounts for a container, which are nested. However, they come from a volume that could under some circumstances not be available. So a bind mount may fail. In particular, it can happen that the mount point in the container does not exist. Sadly the container just fails to start.

Is it possible to still make the container start and create a warning instead?
 
Maybe a hookscript that changes the CT configuration before starting?

EDIT: I feel like the title of the thread is the exact opposite of your question and that the title as it is now is already covered by the default behavior.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!