mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-28 13:00:15 +03:00
When a Docker container is created (e.g., when loading a project), the node status should reflect the actual container state. Previously, the node status was always set to 'stopped' even if the container was already running. This fix checks the container state after creation and updates the node status accordingly: - If container is running: status = 'started' - If container is paused: status = 'suspended' - If container is exited: status = 'stopped' (default) This ensures that project.is_running() correctly detects running Docker containers when attempting to export/duplicate a project, fixing the issue where running Docker nodes were not detected and prompted for shutdown.