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.

HELP: docker-shell script error

Featured Replies

Hi,

 

I followed the instructions in SpaceInvaderOne's recent "How to easily bash into a running docker container" video, but I get the following error when I run #docker-shell 

 

root@SERVER:~# docker-shell
-bash: /usr/local/bin/docker-shell: /bin/bash^M: bad interpreter: No such file or directory

 

Has anyone seen this before or know what's causing it?

 

Thanks!

 

 

  • Author

I ended up dealing with it by downloading his docker-shell file in the description and then copying it onto the flash disk, then using the Command Line plugin and the Custom Tab plugin to run a shell inside the unRAID GUI. I then put the go file in a share and used vi to add the cp /boot/custom/docker-shell /usr/local/bin line. Then moved the go file from the share to the flash disk and ran #cp /boot/custom/docker-shell /usr/local/bin in shell. It worked after that. I'm guessing Windows was doing something weird with line breaks... Was very annoying, but at least it's sorted out now. I hope this helps anyone else who was having this same issue!

10 hours ago, jackson said:

I'm guessing Windows was doing something weird with line breaks...

Perfectly normal.  Windows uses \r\n for line breaks, whereas everything else in the world uses \n.  The solution is that anything you utilize with unRaid is to save the file with Notepad++ and set it to use Unix style line endings.

  • Author
17 hours ago, Squid said:

Perfectly normal.  Windows uses \r\n for line breaks, whereas everything else in the world uses \n.  The solution is that anything you utilize with unRaid is to save the file with Notepad++ and set it to use Unix style line endings.

 

Thanks, Squid!

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.