dockge icon indicating copy to clipboard operation
dockge copied to clipboard

dockge lost single quotation when freshed

Open kbore opened this issue 1 year ago • 2 comments

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

  • [X] I checked and didn't find similar issue

🛡️ Security Policy

Description

No response

👟 Reproduction steps

reproduce it with deploy following yml in dockge. When press F5 refresh dockge web page, single quotation in environtment KEY is lost in web page.

services:
  beszel:
    image: henrygd/beszel:latest
    container_name: beszel
    restart: unless-stopped
    extra_hosts:
      - host.docker.internal:host-gateway
    ports:
      - 8090:8090
    volumes:
      - ./beszel_data:/beszel_data

  beszel-agent:
    image: henrygd/beszel-agent:latest
    container_name: beszel-agent
    restart: unless-stopped
    network_mode: host
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      PORT: 45876
      KEY: 'nnnnnnnnnnnn'

👀 Expected behavior

Keep yml as I type:

KEY: 'nnnnnnnnnnnn'

😓 Actual Behavior

Key value lost its single quotation. My key has space between characters, dockge will break it util I fix it manual.

KEY: nnnnnnnnnnnn

Dockge Version

1.4.2

💻 Operating System and Arch

debian11

🌐 Browser

chrome Version 131.0.6778.205

🐋 Docker Version

No response

🟩 NodeJS Version

No response

📝 Relevant log output

No response

kbore avatar Jan 12 '25 03:01 kbore

the same to me

Relaxself avatar Jan 25 '25 13:01 Relaxself

Have the same problem.

It removes all quotation marks. Why is dockage changing the YML? If i put quotation marks in, it has a reason. 18k ⭐ and nobody complains about it? Here an example why it's important. https://binfalse.de/2024/05/31/docker-compose-quotation-pitfalls/

BenRoe avatar Jul 06 '25 19:07 BenRoe