-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker rootless: Error when setting ulimits on elasticsearch #876
Comments
Hi Omar! Good to see you here :) Is there any way to detect whether we are running rootless docker? If yes, then we could implement a
(As a sidenote, we should also probably print a warning about the exposed caddy ports when they are < 1024 in rootless mode) What do you think? |
😃
This even better. I don't want to think about this either and prefer if Tutor did that out of the box.
Yes:
Caddy fails in rootless The use cases for rootless docker is mostly for development, and I don't think this should be a concern. I would prefer the warning to teach me something e.g: "Caddy needs ports 80 and 443 to be open and you're running in rootless mode which isn't allowed to use ports from 1-1024. If you're using Tutor for development, please don't use |
I've added a This way we don't need to have an additional configuration command. I can add it to |
I deleted my previous comment as I realized I misunderstood the proposed solution. |
Bug description
Tutor can't start elasticsearch on rootless docker due to
ulimits
section.ulimits
section cannot be removed withdocker-compose.override.yml
once set.How to reproduce
$ tutor config save
$ tutor dev start elasticsearch
The error below shows up:
Removing the
ulimits
section fixes the issue.Environment
Ubuntu 22.04 with rootless docker:
Hardware: CPU i7=12700H with 32 GB of RAM.
Suggest solutions
A. Fix the issue by introducing a new variable ELASTICSEARCH_SET_ULIMITS which can be set to False on rootless docker installations
B. Set ELASTICSEARCH_SET_ULIMITS to False by default
C. Include ulimit only on
.prod
deploymentsD. Other suggestions?
I'm planning to fix the issue myself. I've finally started to learn Tutor.
The text was updated successfully, but these errors were encountered: