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.

Updating Docker removes private SSH key

Featured Replies

I'm trying to setup passwordless ssh access inside a docker container to another one of my servers in order to send commands through ssh. I have it working but whenever I update the docker container it rebuilds it and I lose the SSH key that is under /root/.ssh/id_rsa

 

Is there anyway to store the private key id_rsa in one of the config directory of the docker container and copy that into /root/.ssh/ upon build time so every time it updates I won't lose the key? Thanks! 

  • Author

I'm trying to do this for the home-assistant container. Also is there any way to allow docker containers to see deployed ip addresses of other docker containers? For example I'm trying to access another docker container pihole through the command 

curl -X GET 'http://192.168.1.xx/admin/api.php?status' in order to get some information but I just keep getting the error

curl: (7) Failed to connect to 192.168.1.xx port 80: No route to host

 

Is it because home assistant docker is set to host but the pihole has a changed ip address so the network type is br0? When I type the same command through another computer I see the results fine it's just within the docker container it's being restricted access to not being able to see pihole

A container on br0 can't communicate with one that has a dedicated ip.  Limitation of docker networking.

 

As for the SSH key add another path to the container

 

/mnt/cache/appdata/home-assistant/ssh/id_rsa

and map it to 

/.ssh/id_rsa

 

  • Author

Thank you! I got it working :)

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.