1
0
Fork 0
mirror of https://github.com/louislam/dockge.git synced 2026-03-03 02:06:55 -05:00

Empty "networks" section added to existing files #134

Open
opened 2026-02-20 13:11:16 -05:00 by deekerman · 2 comments
Owner

Originally created by @marktitorenkov on GitHub (May 18, 2024).

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

When editing existing compose files (and creating new ones) an empty networks section is always added at the bottom.

...
networks: {}

For compose files that do not use the function this is unneeded.

👟 Reproduction steps

  1. Create a compose file
  2. Remove the networks: {} line
  3. Save
  4. Click edit
  5. The networks: {} line is added

👀 Expected behavior

The networks: {} line should not be added

😓 Actual Behavior

The networks: {} line is added

Dockge Version

1.4.2

💻 Operating System and Arch

debian bookworm

🌐 Browser

Microsoft Edge 124.0.2478.97

🐋 Docker Version

Docker version 26.1.3, build b72abbb

🟩 NodeJS Version

No response

📝 Relevant log output

No response

Originally created by @marktitorenkov on GitHub (May 18, 2024). ### ⚠️ Please verify that this bug has NOT been reported before. - [X] I checked and didn't find similar issue ### 🛡️ Security Policy - [X] I agree to have read this project [Security Policy](https://github.com/louislam/dockge/security/policy) ### Description When editing existing compose files (and creating new ones) an empty networks section is always added at the bottom. ``` ... networks: {} ``` For compose files that do not use the function this is unneeded. ### 👟 Reproduction steps 1. Create a compose file 2. Remove the `networks: {}` line 3. Save 4. Click edit 5. The `networks: {}` line is added ### 👀 Expected behavior The `networks: {}` line should not be added ### 😓 Actual Behavior The `networks: {}` line is added ### Dockge Version 1.4.2 ### 💻 Operating System and Arch debian bookworm ### 🌐 Browser Microsoft Edge 124.0.2478.97 ### 🐋 Docker Version Docker version 26.1.3, build b72abbb ### 🟩 NodeJS Version _No response_ ### 📝 Relevant log output _No response_
Author
Owner

@iTofu commented on GitHub (Aug 4, 2025):

Same problem, any update?

@iTofu commented on GitHub (Aug 4, 2025): Same problem, any update?
Author
Owner

@eMuonTau commented on GitHub (Jan 1, 2026):

I think it is because deserialization/serialization. It removes empty lines too.

@eMuonTau commented on GitHub (Jan 1, 2026): I think it is because deserialization/serialization. It removes empty lines too.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dockge-louislam#134
No description provided.