Where to keep persistent, executable files in Container-Optimized OS

373 Views Asked by At

I'm using a Container-Optimized OS on GCP's Compute Engine. I'm mounting a directory volume to my container, the problem is that my application creates and executes files in this volume, but Container-Optimized OS doesn't allow executing in a home directory. Where should I keep the volume then?

According to this, the only suitable path is /var/lib/[google|docker|toolbox], but is it a correct place to keep such files? Will I stumble upon some issues if I keep my persistent, executable files there? Or maybe should I switch to a different OS (eg. Ubuntu)?

1

There are 1 best solutions below

0
Bryan L On

According to @DazWilkin, and verified by @Gieted. Mounting additional drives is a good solution.

Here is a documentation on how to mount additional drives on container-optimized OS