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.

docker exec -it "name" /bin/bash shows unraid hostname

Featured Replies

I'm trying to login to @sparklyballs mythtv container.  I need to upgrade the version of mythtv to .29.  I have done the docker exec -it command several time on other containers and it works fine.  I ALWAYS do a hostname command just to make sure I'm working in the container and not on the unraid OS.  So I have 2 issues.....

 

1. I cannot use container name.  for example.  "docker exec -it sparkly-mythtv /bin/bash"  Instead I always use the  container ID.  "docker exec -it f0bcfb2831c1 /bin/bash"

Any idea why can't I use the container name like every example on the internet shows?

 

2. When I run "docker exec -it f0bcfb2831c1 /bin/bash"  I get no error.  The root@Plex-TRW:~# changes from green to white.  (FYI my unraid hostname is Plex-TRW)

  - I immediately run "hostname"  and that returns "Plex-TRW"

So I'm hesitant to run any command for fear that they will be run locally on not in the mythtv container.

 

Any ideas?

 

 

Now I have seen before where bash does not work (I assume it's not installed in the container) and instead I would use /bin/sh  But this gives the same result when I run hostname

 

I have also ran docker exec -it f0bcfb2831c1 ifconfig  This unfortunately shows my the local host (plex-TRW) ifconfig and not of the container.

 

Please help.  thanks

 

  • Author

bump

exec'ing into containers running as host will show unRaid's name.  Containers as bridge will show the id#

 

if you're worried about where you are, 

ls /mnt/user

 

If it returns something you're either still in unRaid, or you've mapped /mnt/ to /mnt/

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.