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.

Restart Docker Container Automatically After Crash?

Featured Replies

Hi Everyone,

 

Been struggling with this over the past couple days, and my Linux isn't so great.  Anyways, I am running homebridge in a docker container, sometimes it crashes, and I would like it to auto restart.  I have found the commands that I think should work, but UnRaid doesn't seem to like them.  Here is the command I am running:

 

Here is the docker info:

849da366d1aa        adair21/homebridge-docker     "/root/run.sh"           4 weeks ago         Exited (137) 23 minutes ago                                                     homebridge

 

 

Command I Run:

docker run -d --name homebridge --restart unless-stopped homebridge

 

Output:

Unable to find image 'homebridge:latest' locally
Pulling repository docker.io/library/homebridge
docker: Error: image library/homebridge:latest not found.
See 'docker run --help'.

 

 

Can anyone help?

 

Thanks!

1 hour ago, skiman384 said:

docker run -d --name homebridge --restart unless-stopped homebridge

last homebridge should be: adair21/homebridge

 

you can add the --restart unless-stopped (or --restart always) into the extra parameters section of the template

 

Edited by Squid

  • Author

Thanks!

 

So I think I got it right, I tried what you had above and got the following error:

 

docker: Error response from daemon: Conflict. The name "/homebridge" is already in use by container 849da366d1aaa93389a38953aa7e28138de19b3bfb0ed365cf58622c7dcc1464. You have to remove (or rename) that container to be able to reuse that name..
See 'docker run --help'.

 

 

I then just ran :

docker run -d - --restart unless-stopped adair21/homebridge-docker and got this response:

906851b25122e269673454b6816117281466b9e3cea71c2fb2876239c6e7f520

 

 

The error is because you're trying to reinstall the container using the same name

 

Its going to be easiest if you simply add to the extra parameters of the template

13 hours ago, Squid said:

you can add the --restart unless-stopped (or --restart always) into the extra parameters section of the template

 

 

Edited by Squid

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.