-
Notifications
You must be signed in to change notification settings - Fork 118
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
4.25 silently lowers vm.max_map_count from 262144 to 65530, breaking Elasticsearch containers ("ExitCode": 78)#7047
Comments
As a temporary workaround you can run this but idk how to make it permanent on macOS. I think there is now a way to permanently adjust sysctl values with Docker for Windows but don't know it offhand. On linux of course it's just this on the host: |
Finally, I'm not sure this is related to this problem but I think this s a new error in 4.25 with my elasticsearch container: |
I'm experiencing the same problem on 4.25, quite easy to reproduce it: ❯ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
❯ docker run -it --privileged alpine:latest
/ # sysctl vm.max_map_count
vm.max_map_count = 65530
/ # sysctl -w vm.max_map_count=262144
vm.max_map_count = 262144
/ # sysctl vm.max_map_count
vm.max_map_count = 262144
/ # exit
❯ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ff0d3a4df7b4 alpine:latest "/bin/sh" 24 seconds ago Exited (0) 11 seconds ago strange_hamilton
❯ docker start -ai strange_hamilton
/ # sysctl vm.max_map_count
vm.max_map_count = 262144
/ # exit
❯ echo 'Now I restart docker-desktop'
Now I restart docker-desktop
❯ docker start -ai strange_hamilton
/ # sysctl vm.max_map_count
vm.max_map_count = 65530 |
Just logged a support ticket for elastisearch dying with error.
|
Same here, reproduced on two machines. Couldn't remedy easily. Rolled back. |
Looks like there is currently no way to make the changes perm "the filesystem of Docker Desktop is readonly and you can’t write or install anything in it" https://forums.docker.com/t/how-to-enter-docker-vm-terminal-on-macos-14/138316 |
FWIW this workaround for compose users came up in: Add a privileged compose service, make the elasticsearch service
|
Faced the same issue. Like @desmortum said, Rolling back to v4.24.2 fixes the issue. Release note link: https://docs.docker.com/desktop/release-notes/#4242 |
Same here, in my team we're all affected by this |
We are affected by this too. |
@chdimitrov cool but as mentioned in #7047 (comment) you can also simply run a privileged container to do it:
This can also be made a compose service to have it automatically run before elasticsearch container startup, see above. |
same here, went to prior version until this is fixed https://docs.docker.com/desktop/release-notes/#4242 |
Same problem here on Manjaro Linux.
This workaround worked perfect for me. Thanks! |
We've released a new version of Docker Desktop containing a fix for this issue, you can see the release notes! I'll close this issue for now, but if the issue persists, feel free to open a new issue! |
Description
Elasticsearch containers rely on vm.max_map_count being 262144
https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
and that was the default for Docker for Mac up until 4.25.
Reproduce
docker run centos:7 sysctl vm.max_map_count
on old and new Docker for Mac. Now it outputs:vm.max_map_count = 65530
Previously it output:
vm.max_map_count = 262144
Expected behavior
Upgrades shouldn't break existing deployments or lower sysctl values.
docker version
Client: Cloud integration: v1.0.35+desktop.5 Version: 24.0.6 API version: 1.43 Go version: go1.20.7 Git commit: ed223bc Built: Mon Sep 4 12:28:49 2023 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.25.0 (126437) Engine: Version: 24.0.6 API version: 1.43 (minimum version 1.12) Go version: go1.20.7 Git commit: 1a79695 Built: Mon Sep 4 12:31:36 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.22 GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca runc: Version: 1.1.8 GitCommit: v1.1.8-0-g82f18fe docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
76189D97-5C98-4A66-A89B-45AC1DEF5F42/20231027203626
Additional Info
No response
The text was updated successfully, but these errors were encountered: