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.

Change volume mapping on Docker via command line

Featured Replies

Hi all,

I have Hamachi Logmein running in a docker container, but it has no webui and no "Edit" menu in the dropdown list when clicking on the Hamachi icon. There is currently one volume mapping:

 

/config <-> /mnt/cache/appdata/Hamachi/

 

However I'd like to change that mapping to:

 

/config <-> /mnt/disks/TemporarySSD/Docker/Hamachi (Docker)

 

This change has to be done in the command line, but I'm not confident in my skills to make the change. Note, the name of the Logmein docker is simply "Hamachi". Can anyone walk me through the process? I can't imagine its overly difficult. Thank you in advance!

  • Community Expert

I don't think there is any way to change volume mappings after the docker starts. That would be a serious security hole if you could.

 

What exactly makes you think this is something you need to do?

  • Community Expert

If all you are trying to accomplish is changing the location of the config, just click on the docker, edit the mapping, and apply the change to restart the docker with the new mapping.

  • Author

I have every other docker container running on a solid state drive outside of the array. The Hamachi docker works just fine on the cache drive, but I'd like it to be consistent and store all dockers on the solid state, partially because the cache drive spins up whenever I use Hamachi.

 

I'd like to change the location of the config, but there is no way to edit the mapping when I click on the docker. See the attached photo.

 

Currently I'm thinking that I remove the docker container, and then readd it with the correct config location. I'm just concerned that it might not work correctly anymore, especially because the initial installation procedure was incredibly difficult since the container isn't actively updated or compatible anymore.

Capture.PNG.893803b070a642c678cd066f99574c14.PNG

Be helpful to post what your run command is currently and then I can tell you what to change it to.

Also I believe that the reason you don't see an edit option is because you added the app via the command line.  Remove the app then Add it via add container button and fill out the appropriate information

 

Sent from my LG-D852 using Tapatalk

 

 

  • Author

Thank you all for your help! I discovered out how to do this thanks to your helpful words. I'd like to document how I completed it, partially just for me and partially for anyone else who may be trying this.

 


 

Note: I initially installed the docker via command line with the following instruction (source: http://lime-technology.com/forum/index.php?topic=39209.msg424486#msg424486):

 

docker run -d --name="Hamachi" --net="host" --privileged="true" -e ACCOUNT="[email protected]" -v "/mnt/cache/Apps/Hamachi/":"/config":rw -v "/etc/localtime":"/etc/localtime":ro gfjardim/hamachi

 

I accidentally forgot to change the "config" mapping and wanted it on a different drive other than the cache drive. These are the steps to move it to the other drive.

 

First, I copied all of the config files from the existing Hamachi installation location to a backup. As per Squid's instruction, I removed the docker that I created via command line. I then recreated the docker using the webui and specified the following parameters when creating it. I had to manually create the variable "ACCOUNT" and path "/config".

 

Name: Hamachi
Repository: gfjardim/hamachi
Network type: Host
Priveleged: on
Container variable "ACCOUNT": [email protected]
Container path "/config": /mnt/disks/TemporarySSD/Docker/Hamachi (Docker)/

 

Then I created the docker, and copied the files I backed up earlier to my new installation location and overwrote the existing ones.

 

Those steps should allow you to move your docker, and by creating it via the webui, you can now change the container paths without headache.

 

Thanks again everyone for your help!

Like Squid said, if you added it via Community Applications then you'll make a template for it which you can use in the future.

Made a video of how to install in Community Applications, so you can edit the template via the webui.

EDIT: Damn, just seen you figured it out anyways....  ;D

 

  • Author

Well I really really appreciate your efforts to help me CHBMB, I really do! Hopefully, someone else will stumble upon this page and be helped by your video!

 

Thanks again!

  • 3 months later...

Thanks Guys,

I am a very new user to Unraid.

My son and I built a 30tb server for the purpose of hosting a home media server. We still have and are using a Netgear NV+ v2 that I am looking to transfer all the data to the new Unraid box.

Thanks for the invaluable information

On ‎3‎/‎27‎/‎2017 at 10:51 AM, CHBMB said:

@shanelovell I'm sorry, what's that got to do with this thread? :$

I watched the video for installing Hamachi within the community apps.

3 hours ago, shanelovell said:

I watched the video for installing Hamachi within the community apps.

 

Oh gotcha!  I was expecting a question...... My bad... :/

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.