#990·dockge

Bug: Dockge's compose editor strips the leading zero from tmpfs mode

Author: Hr46phCreated Jul 26, 2026Updated Jul 26, 2026
Labelsbug

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

  • I checked and didn't find similar issue

️ Security Policy

Description

tmpfs.mode is an octal permission value. In YAML, the leading 0 on an unquoted number is what tells the parser to resolve the scalar as octal. Dropping it (or quoting the value as a string which is equally wrong) changes how the number gets interpreted and can silently produce a different or invalid mode.

References:

Reproduction steps

Compose file contains:

yaml
      - type: tmpfs
        target: /app/cache/highlight
        tmpfs:
          mode: 01777

Edit and save the file via Dockge's editor (no manual changes to this line). Result:

yaml
- type: tmpfs
        target: /app/cache/highlight
        tmpfs:
          mode: 1777

Expected behavior

Dockge's save/edit path should not modify numeric literals it isn't asked to change — 01777 should round-trip as 01777, not 1777.

Actual Behavior

Untouched numeric literals that weren't touched in the edit.

Dockge Version

1.5.0

Operating System and Arch

image: louislam/dockge:1 on Archlinux 7.1.4-arch1-1

Browser

Vivaldi 8.1.4087.58 (Official Build) (64-bit)

Docker Version

docker 1:29.6.2-1

NodeJS Version

n/a

Relevant log output

bash