jackson Posted September 5, 2017 Share Posted September 5, 2017 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! Quote Link to comment
jackson Posted September 6, 2017 Author Share Posted September 6, 2017 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! Quote Link to comment
Squid Posted September 6, 2017 Share Posted September 6, 2017 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. Quote Link to comment
jackson Posted September 7, 2017 Author Share Posted September 7, 2017 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! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.