metal3d / docker-xmrig

Xmrig containeried to mine monero cryptocurrency
MIT License
66 stars 47 forks source link

Cannot bind to memory #5

Closed c0dyhi11 closed 11 months ago

c0dyhi11 commented 2 years ago

I'm getting the error inside of the docker container that "Can't bind memory"

[2022-01-11 03:14:08.880] CPU #00 warning: "can't bind memory"
[2022-01-11 03:14:08.880] CPU #01 warning: "can't bind memory"
[2022-01-11 03:14:08.880] CPU #02 warning: "can't bind memory"
[2022-01-11 03:14:08.880] CPU #03 warning: "can't bind memory"
[2022-01-11 03:14:08.880] CPU #04 warning: "can't bind memory"
[2022-01-11 03:14:08.880] CPU #05 warning: "can't bind memory"
[2022-01-11 03:14:08.881] CPU #06 warning: "can't bind memory"
[2022-01-11 03:14:08.881] CPU #08 warning: "can't bind memory"
[2022-01-11 03:14:08.881] CPU #07 warning: "can't bind memory"
[2022-01-11 03:14:08.881] CPU #09 warning: "can't bind memory"
[2022-01-11 03:14:08.881] CPU #10 warning: "can't bind memory"
[2022-01-11 03:14:08.881] CPU #11 warning: "can't bind memory"

Is this something that you've experienced?

$ docker --version
Docker version 20.10.9, build c2ea9bc
metal3d commented 2 years ago

Using "Docker version 20.10.12, build 485636f" I've got no problem. Are you on Linux?

metal3d commented 11 months ago

no problem on podman too, I close this issue as it is an old issue.

raldone01 commented 2 weeks ago

Adding cap SYS_NICE worked for me. https://stackoverflow.com/a/67338483/4479969


cap_add:
      - SYS_NICE