Skip to content
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 compose error for elasticsearch #435

Open
ozz-project opened this issue Sep 3, 2024 · 5 comments
Open

docker compose error for elasticsearch #435

ozz-project opened this issue Sep 3, 2024 · 5 comments
Labels
bug Something isn't working question Further information is requested

Comments

@ozz-project
Copy link

ozz-project commented Sep 3, 2024

Summary:
docker compose up -d

elastic search crashes with
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting rlimits for ready process: error setting rlimit type 8: operation not permitted: unknown

Description:
seem to be the parameter for elasticserach :ulimit with hard and Soft: -1 in docker-compose.yml

  1. uncomment/leave in docker-compose.yml the line in elasticsearch with ulimit up to volumens
  2. run docker again
  3. error from above
  4. comment the lines
  5. run docker again
  6. works fine

Expected behavior

Docker should run through
there also some warnings as well

WARN[0000] /opt/wiki/Canasta-DockerCompose/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
WARN[0000] /opt/wiki/Canasta-DockerCompose/docker-compose.override.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 

System info

latest version

@ozz-project ozz-project added bug Something isn't working question Further information is requested labels Sep 3, 2024
@yaronkoren
Copy link
Member

@ozz-project - what versions of Docker and Docker Compose are you running? And what operating system are you running?

@ozz-project
Copy link
Author

ozz-project commented Sep 3, 2024

Docker Compose version v2.29.2

Client: Docker Engine - Community
Version: 27.2.0
API version: 1.47
Go version: go1.21.13
Git commit: 3ab4256
Built: Tue Aug 27 14:15:13 2024
OS/Arch: linux/amd64
Context: default

Server: Docker Engine - Community
Engine:
Version: 27.2.0
API version: 1.47 (minimum version 1.24)
Go version: go1.21.13
Git commit: 3ab5c7d
Built: Tue Aug 27 14:15:13 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.21
GitCommit: 472731909fa34bd7bc9c087e4c27943f9835f111
runc:
Version: 1.1.13
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0

OS: Debian Workworm/SID

@yaronkoren
Copy link
Member

Alright, that looks reasonable. Could you try calling sudo docker compose up -d instead? The lack of sufficient privileges is often the cause of these sorts of issues.

@ozz-project
Copy link
Author

i tried it with sudo... the same as before

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants