Instanzen mit benutzerdefinierten Gastrichtlinien konfigurieren
Container-Optimized OS enthält den OS Config-Agent. Sie können die Gastrichtlinien von OS Config verwenden, um Ihre Instanz zu konfigurieren. Die Features packages und packageRepositories von Gastrichtlinien werden im Container-Optimized OS nicht unterstützt.
Folgendes Beispiel zeigt, wie Nutzer die Features assignment und recipes von Gastrichtlinien verwenden können, um eine Datei auf Instanzen in us-central1-a zu erstellen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-08 (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."]]],[]]