Docker - YML Fehler bei Sonderzeichen im Passwort

  • Nach der gestrigen - bis dahin einmaligen - Feststellung, konnte ich den Fehler an anderer Stelle reproduzieren. Nur über die Ursache/Zusammenhänge bin ich mir noch nicht im Klaren.

    Ausgangslage: Test Ugreen Docker App (Projekt) vs Portainer (beides mit YML-Datei)

    Container: WUD (inkl. E-Mail Benachrichtigung)

    Problemstellung:

    Deploy Docker —> wieder Fehler wegen nicht gesetzter Variable („empty string“)

    Deploy Portainer —> fehlerfrei

    Ursache: ein $ im E-Mail Passwort. Alles Folgende war der Variablenwert.

    Lösung: Passwort geändert* ;)

    Frage: wieso nur in der Docker App und nicht über Portainer.


    *…und musste das im Anschluss auf allen Clients eintragen 🙄😆

    UGREEN DXP2800 | UGOS 1.17.0.0095 - 16GB RAM - 2x Lexar NM790 1TB Btrfs RAID1 - 2x Seagate IronWolf 4TB Btrfs RAID1
    Raspberry Pi 4B/4 | DietPi 10.5.2 (Debian Trixie) - 1x WD Red SA500
     MacBook Air M4 | macOS 26.5.2 |  mobile devices only | FRITZ!Box 7690 (OS 8.25) | Eaton Ellipse ECO 650 DIN USB USV

  • Guten Morgen,

    das $-Zeichen wird in Docker Compose YML-Dateien als Startzeichen für eine Umgebungsvariable interpretiert. Wenn es nicht korrekt maskiert wird, führt das zu einem Fehler (z. B. leerer Wert).

    Portainer verarbeitet Stacks allerdings anders, dort findet keine Shell-ähnliche Interpretation statt, weshalb es in diesem Fall nicht zu Problemen kommt.

  • Danke, Mike! Ich war nur unschlüssig, weil der Fehler trotz Maskierung weiterbestand.

    UGREEN DXP2800 | UGOS 1.17.0.0095 - 16GB RAM - 2x Lexar NM790 1TB Btrfs RAID1 - 2x Seagate IronWolf 4TB Btrfs RAID1
    Raspberry Pi 4B/4 | DietPi 10.5.2 (Debian Trixie) - 1x WD Red SA500
     MacBook Air M4 | macOS 26.5.2 |  mobile devices only | FRITZ!Box 7690 (OS 8.25) | Eaton Ellipse ECO 650 DIN USB USV

  • Gerne!

    Eventuell kann dir das auch noch jemand anderes besser oder fachlich genauer hier erklären.

  • Die Ursache ist völlig ausreichend! :) :thumbup:

    UGREEN DXP2800 | UGOS 1.17.0.0095 - 16GB RAM - 2x Lexar NM790 1TB Btrfs RAID1 - 2x Seagate IronWolf 4TB Btrfs RAID1
    Raspberry Pi 4B/4 | DietPi 10.5.2 (Debian Trixie) - 1x WD Red SA500
     MacBook Air M4 | macOS 26.5.2 |  mobile devices only | FRITZ!Box 7690 (OS 8.25) | Eaton Ellipse ECO 650 DIN USB USV

  • Ugreen NAS DPX4800Plus, UGOS 1.17.0.0095, 2x Samsung 990 EVO Plus NVMe M.2 SSD 2 TB Raid1, 3*Toshiba MG10ACA20TE HDD 20TB Raid5, 64GB RAM -> 2 x Crucial DDR5 RAM 32GB 4800MHz SODIMM
    DS1522+ | DSM 7.4-90075 (Final) | 40 GB RAM | 3 x WD 14TB WD140EFGX Red Plus SHR, 2 x M.2-Samsung 980 Pro SSD 1TB SHR
    DS415+ | DSM 7.1.1-42962-9 (Final) | 8 GB RAM | 3 x WD 6TB WD60EFRX Red Raid5, 1 x SSD Intel 128GB Basic

  • Okay...Memo an mich, Passwörter ,etc. in YML-Dateien künftig ohne $...oder halt $$. ;)

    UGREEN DXP2800 | UGOS 1.17.0.0095 - 16GB RAM - 2x Lexar NM790 1TB Btrfs RAID1 - 2x Seagate IronWolf 4TB Btrfs RAID1
    Raspberry Pi 4B/4 | DietPi 10.5.2 (Debian Trixie) - 1x WD Red SA500
     MacBook Air M4 | macOS 26.5.2 |  mobile devices only | FRITZ!Box 7690 (OS 8.25) | Eaton Ellipse ECO 650 DIN USB USV

Participate now!

Join our community with over 10,000 members!

Register yourself now for free to get full access to all content, graphics, downloads and other exclusive features!