Skip to content

Imaginary: give sys_nice to Docker, so Imaginary reads its flags - #2888

Merged
enoch85 merged 3 commits into
mainfrom
fix/imaginary-arguments
Nov 10, 2026
Merged

enoch85 merged 3 commits into
mainfrom
fix/imaginary-arguments

Conversation

@enoch85

@enoch85 enoch85 commented Nov 9, 2026

Copy link
Copy Markdown
Member

–cap-add=sys_nice, with an en dash, came after the image name (since #2479), so Docker passed it to Imaginary as an argument. Imaginary stops reading flags there, so it ignored -concurrency 50 -enable-url-source -return-size -log-level debug. The install's test then got a 405, and curl -O doesn't fail on that.

  • --cap-add=sys_nice is now a Docker option before the image name, as in AIO.
  • The install's test fails on HTTP errors.

Existing containers keep their arguments until Imaginary is reinstalled. Nextcloud sends the images itself, so the ignored flags don't change its previews.

Tested with the real imaginary.sh on a full install (Ubuntu 26.04 in a privileged container):

  • main: the test request gets a 405, the install says it works, and Docker adds no capability.
  • This branch: the test request gets a 200, Docker adds SYS_NICE like in AIO, and Nextcloud still gets previews from Imaginary. The new test line fails on the 405 that the old arguments give.

–cap-add=sys_nice, with an en dash, came after the image name, so Docker
passed it to Imaginary. Imaginary stops reading flags at the first argument
that isn't one, which made it ignore -concurrency, -enable-url-source and the
rest. The install's test then got a 405, which curl -O doesn't fail on.

Add the capability with --cap-add before the image, like AIO does, and make
the test fail on HTTP errors.

Signed-off-by: enoch85 <mailto@danielhansson.nu>
@enoch85
enoch85 marked this pull request as ready for review November 10, 2026 06:54
@enoch85
enoch85 merged commit f2b2e50 into main Nov 10, 2026
10 checks passed
@enoch85
enoch85 deleted the fix/imaginary-arguments branch November 10, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant