Configuring instances with user-defined guest policies
Stay organized with collections
Save and categorize content based on your preferences.
Container-Optimized OS includes the
OS Config
agent. You can use OS Config's guest policies to configure your
instance. packages and
packageRepositories features of guest policies are not supported on Container-Optimized OS.
Here is an example that shows how users can use assignment and recipes
features of guest policies to create a file on instances located at
us-central1-a.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["Container-Optimized OS includes the OS Config agent, which allows instance configuration through guest policies."],["The `packages` and `packageRepositories` features of guest policies are not supported on Container-Optimized OS."],["Users can utilize the `assignment` and `recipes` features of guest policies to perform actions such as creating files on instances."],["Unlike other distros, Container-Optimized OS requires an `interpreter` to execute scripts in recipes and runs recipes on every boot due to the stateless nature of most directories."],["While it's optional to provide an `interpreter` on other distros, Container-Optimized OS requires it to execute the given script."]]],[]]