0

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)?

Gieted
  • 835
  • 6
  • 21

1 Answers1

1

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

Bryan L
  • 550
  • 1
  • 9