chore: remove version field from default compose dict in ComposeFileManager
The default compose dictionary no longer includes the deprecated "version" key, keeping only the "services" entry to align with modern Docker Compose specs.
This commit is contained in:
@@ -16,7 +16,7 @@ class ComposeFileManager:
|
||||
with open(self.compose_path) as f:
|
||||
self.compose = yaml.safe_load(f) or {}
|
||||
except FileNotFoundError:
|
||||
self.compose = {"version": "3", "services": {}}
|
||||
self.compose = {"services": {}}
|
||||
|
||||
def _save(self):
|
||||
with open(self.compose_path, "w") as f:
|
||||
|
||||
Reference in New Issue
Block a user