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.

Stop via sock does not work but via "docker stop".

Featured Replies

  • Solution

Hi!

 

Unraid 6.12.3.

Observed a weird behavior of docker...

 

I use the DockerClient class for starting and stopping containers for the appdata.backup. Now, after a few days with my new setup server, I noticed, that my guacd container stays off after backup. The log says, that it could not be stopped, because "Code: " (no further code). This is the result straight out of stopContainer function.

 

So I made a test:

 

DockerClient->stopContainer always fails to stop guacd and hits the timeout. If I use "docker stop guacd" in the console, its stopping as wanted.

 

Did anyone noticed this as well? I dont know whats the difference, both commands should talk to docker via the socket, right?

 

Wait.. Just while writing this... I forgot to specify the -t parameter for "docker stop guacd". As soon as I specify -t, it does the same.

 

With this knowledge, I solved my own problem during writing this thread (I still leave it here). docker stop hits the default 10 second timeout and KILLS the container without changing the output (just displays the container name, as usual). Obviously its something within guacd which ignores the SIGTERM.

 

But the DockerClient->stopContainer returns an error if the KILL happened. I know that this is coming straight out the docker API. So I have to catch that case with a test.

Solved by KluthR

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.