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.

How to enable docker without having the containers I have set to auto-run, run?

Featured Replies

Obviously with docker disabled I can't edit the autostart options on the page. How do I do this? or a way to erase the autostart options in cli or editing a file?

 

Thaks

/var/lib/docker/unraid-autostart

 

Which is inside the docker.img file, so if that's not mounted you will need to manually mount it to make the edit. Or you can just delete the docker.img file and recreate it, you will need  to recreate any custom networks before restoring all you containers with the previous apps section of CA. It only takes a few minutes, and you won't lose any data as long as your containers are properly mapped to appdata.

  • 9 months later...

To add some more specific details/steps to this; here's what I did just now (Ref) :

  • Made a backup of the `docker.img` file, just in case

  • Mounted the `docker.img`, and removed the containers from autostart:

    • /mnt# mkdir /mnt/docker_img
      
      /mnt# mount -o loop /mnt/disk6/TempDumpBackups/docker.img /mnt/docker_img
      
      /mnt# cd /mnt/docker_img/
      
      /mnt/docker_img# ls
      btrfs/    buildkit/    containers/  image/    plugins/   swarm/  trust/   unraid-autostart           volumes/
      builder/  containerd/  engine-id    network/  runtimes/  tmp/    unraid/  unraid-update-status.json
      
      /mnt/docker_img# file unraid-autostart
      unraid-autostart: ASCII text
      
      /mnt/docker_img# cat unraid-autostart
      this
      has
      a
      list
      of
      autostart
      docker
      containers
      
      /mnt/docker_img# cp unraid-autostart unraid-autostart.bkup
      
      /mnt/docker_img# echo "" > ./unraid-autostart
      
      /mnt/docker_img# cd /mnt
      
      /mnt# umount /mnt/docker_img

       

  • Set 'Unraid -> Settings -> Docker -> Enable Docker' to 'Yes'

  • Made the changes I needed to make:

    • On the 'Docker' tab, for each container, checked/updated any mappings directly on `/mnt/cache/*` (eg. `/mnt/cache/appdata`) and updated them to `/mnt/cache_250gb/*` (eg. `/mnt/cache-250gb/appdata`), clicked 'Apply' (since 'Save' doesn't seem to update the mappings in the Unraid Web UI), then manually stopped the container again.

  • Set 'Unraid -> Settings -> Docker -> Enable Docker' to 'No'

  • Mounted the `docker.img`, and restored the previous autostart containers:

    • /mnt# umount /mnt/docker_img
      
      /mnt# mount -o loop /mnt/disk6/TempDumpBackups/docker.img /mnt/docker_img
      
      /mnt# cd /mnt/docker_img/
      
      /mnt/docker_img# rm unraid-autostart
      
      /mnt/docker_img# mv unraid-autostart.bkup unraid-autostart
      
      /mnt/docker_img# cd ..
      
      /mnt# umount /mnt/docker_img
      
      /mnt# rm -r /mnt/docker_img/

       

Edited by devalias

  • 1 year later...

This is a very old post but it would be VERY usefull to have a next run switch in the docker settings to not run containers for the next docker enablement....

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.

Guest
Reply to this topic...

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.