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

3
  • Can you not mount under mnt/disks? Commented Nov 12, 2021 at 3:11
  • Do you run a container on COS? Commented Nov 12, 2021 at 8:27
  • @DazWilkin Yea I think additional drives, mounted under mnt/disks is a way to go. Thank you! Commented Nov 13, 2021 at 11:22

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.