Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[6.3.3] Docker Cannot use & in a host path

Featured Replies

Description: When passing through a host path containing an ampersand, simpleXML is messing up.
Tested on 6.3.3, but probably affects all unRaid versions going back to the start of the Aztec calendar.  (or at least 6.0+  )

(Using /this & that mapped to /test)


Warning: SimpleXMLElement::addChild(): unterminated entity reference that/ in /usr/local/emhttp/plugins/dynamix.docker.manager/include/CreateDocker.php on line 211
Command:root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="Krusader" --net="bridge" -e TZ="America/New_York" -e HOST_OS="unRAID" -e "WIDTH"="1420" -e "HEIGHT"="720" -p 8080:8080/tcp -v "/mnt/user/":"/UNRAID":rw -v "/mnt/user/appdata/krusader/":"/nobody/.kde":rw -v "":"/test":rw sparklyballs/krusader


 
How to reproduce: Create a share with an & in the path, and pass it through to the container

Expected results: dockerMan should not return any errors

Actual results: See above

Other information: I also tried subsituting in the host path & for the heck of it with zero change.

 

 

Edited by Squid

  • Author
6 minutes ago, bonienl said:

Yeah that sign is easily mistaken in the old days... :D

 

Afbeeldingsresultaat voor aztec script

 

XML expects &

I also tried & in the path...  Remote, so couldn't easily look at the generated XML files though.

  • Author

And to help narrow it all down, the legacy section of the XML is correct:

 

    <Volume>
      <HostDir>/mnt/user/this &amp; that/</HostDir>
      <ContainerDir>/test</ContainerDir>
      <Mode>rw</Mode>
    </Volume>

But the v2 section is trashed because the simpleXML error wasn't fatal.

  <Config Name="Host Path 3" Target="/test" Default="" Mode="rw" Description="Container Path: /test" Type="Path" Display="always" Required="false" Mask="false"/>

( And the same error pops up again if you manually set the Default to be /mnt/user/this &amp; that

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.