wazuh-docker
wazuh-docker copied to clipboard
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
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
Same issue on Proxmox 7.4-15 using a stndard Ubuntu LXC (22.04)
Wazuh Manager - starts fine
Wazuh Indexer; returns the message:-
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
Same issue on Proxmox 7.4-15 using a stndard Ubuntu LXC (22.04)
Wazuh Manager - starts fine
Wazuh Indexer; returns the message:-
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
Same for me, also in Proxmox 7.4-15 but in Debian 11 standard container.
Sam issue using Docker on windows whit debian dev env
I found someone getting the same error with Elasticsearch in another docker compose file and their solution worked for me.
In docker-compose.yml comment out the following lines then try compose up:
# ulimits:
# memlock:
# soft: -1
# hard: -1
# nofile:
# soft: 65536
# hard: 65536
Thanks @Ben-Higham this worked for me.
Hello, I know this issue is a bit old but I'm facing the same issue using docker rootless. Have anyone manage to get trough this ? Thanks
Are there any updates? having trouble with the same error.
I found someone getting the same error with Elasticsearch in another docker compose file and their solution worked for me.
In docker-compose.yml comment out the following lines then try compose up:
# ulimits: # memlock: # soft: -1 # hard: -1 # nofile: # soft: 65536 # hard: 65536
thanks, it worked
I found someone getting the same error with Elasticsearch in another docker compose file and their solution worked for me.
In docker-compose.yml comment out the following lines then try compose up:
# ulimits: # memlock: # soft: -1 # hard: -1 # nofile: # soft: 65536 # hard: 65536
Worked for me on Proxmox 8.2.4 using single node
I had the same problem with Elasticsearch running in LXC on Proxmox and I don't suggest commenting out ulimits for Elasticsearch in docker-compose
If you are encountering issues related to memory locking limits (memlock) when running Elasticsearch (or other memory-intensive applications) inside LXC containers on Proxmox, you can resolve this by setting the memlock limit to unlimited for that LXC. This ensures that your application can lock the required amount of memory and avoid performance issues related to swapping.
To fix this, edit the LXC config file by adding lxc.prlimit.memlock=-1
and reboot the container.