{"id":28505508,"url":"https://github.com/simeononsecurity/xmrig-docker","last_synced_at":"2025-07-23T21:38:42.132Z","repository":{"id":296476785,"uuid":"993527787","full_name":"simeononsecurity/xmrig-docker","owner":"simeononsecurity","description":"WIP - A newer, automatically latest, docker container for xmrig.","archived":false,"fork":false,"pushed_at":"2025-05-31T02:00:50.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-08T19:08:10.946Z","etag":null,"topics":["cryptocurrency","docker","docker-container","docker-image","dockerfile","mining","mining-algorithms"],"latest_commit_sha":null,"homepage":"https://simeononsecurity.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simeononsecurity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["simeononsecurity"],"custom":["https://simeononsecurity.com","https://simeononsecurity.com/recommendhome","https://simeononsecurity.com/affiliate","https://twitter.com/simeonsecurity","https://discord.io/cybersentinels"]}},"created_at":"2025-05-31T00:33:04.000Z","updated_at":"2025-06-02T21:14:04.000Z","dependencies_parsed_at":"2025-05-31T11:09:36.773Z","dependency_job_id":"15090bf1-d9f7-42ab-97d1-510d5780e456","html_url":"https://github.com/simeononsecurity/xmrig-docker","commit_stats":null,"previous_names":["simeononsecurity/xmrig-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simeononsecurity/xmrig-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2Fxmrig-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2Fxmrig-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2Fxmrig-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2Fxmrig-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simeononsecurity","download_url":"https://codeload.github.com/simeononsecurity/xmrig-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simeononsecurity%2Fxmrig-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266753972,"owners_count":23979144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptocurrency","docker","docker-container","docker-image","dockerfile","mining","mining-algorithms"],"created_at":"2025-06-08T19:07:50.669Z","updated_at":"2025-07-23T21:38:42.122Z","avatar_url":"https://github.com/simeononsecurity.png","language":"Shell","readme":"# XMRig Docker Container\n\nThis Docker container automatically downloads and runs the latest version of [XMRig](https://github.com/xmrig/xmrig), a high-performance RandomX, KawPow, CryptoNight, AstroBWT and GhostRider CPU miner.\n\nRepository: [https://github.com/simeononsecurity/xmrig-docker](https://github.com/simeononsecurity/xmrig-docker)\n\n_________\n[![Sponsor](https://img.shields.io/badge/Sponsor-Click%20Here-ff69b4)](https://github.com/sponsors/simeononsecurity) [![DockerHub](https://img.shields.io/badge/DockerHub-View%20Image-blue?logo=docker)](https://hub.docker.com/r/simeononsecurity/xmrig)\n\n## Features\n\n- Automatically downloads the latest XMRig release\n- Runs the RandomX boost script at startup for optimal performance\n- Allows custom configuration via mounted config.json\n- Supports passing command-line arguments directly to XMRig\n- CPU-only mining for maximum compatibility and simplicity\n\n## Prerequisites\n\n- Docker installed on your system\n- MSR modules available on the host (for RandomX optimization)\n\n## Usage\n\n### Pulling the Image\n\nYou can pull the image from either Docker Hub or GitHub Container Registry:\n\n#### Docker Hub\n```bash\ndocker pull simeononsecurity/xmrig:latest\n```\n\n#### GitHub Container Registry\n```bash\ndocker pull ghcr.io/simeononsecurity/xmrig:latest\n```\n\n### Basic Usage\n\n```bash\ndocker run --privileged simeononsecurity/xmrig:latest\n```\n\nThe `--privileged` flag is required to allow the container to run the RandomX boost script, which needs access to MSR (Model-Specific Registers).\n\n### Using a Custom Configuration\n\nYou can mount your own `config.json` file to override the default configuration:\n\n```bash\ndocker run --privileged -v /path/to/your/config.json:/config/config.json simeononsecurity/xmrig:latest\n```\n\n### Passing Command-Line Arguments\n\nYou can pass arguments directly to XMRig:\n\n```bash\ndocker run --privileged simeononsecurity/xmrig:latest -o pool.example.com:3333 -u YOUR_WALLET_ADDRESS -p x -k\n```\n\n### GPU Mining\n\n#### NVIDIA GPUs\n\nTo use NVIDIA GPUs for mining, you need to have the NVIDIA Container Toolkit installed and use the following command:\n\n```bash\ndocker run --privileged --gpus all simeononsecurity/xmrig:latest -o pool.example.com:3333 -u YOUR_WALLET_ADDRESS -p x -k --cuda\n```\n\nThe container automatically:\n1. Detects the presence of NVIDIA GPUs\n2. Builds the XMRig CUDA plugin from source code\n3. Configures XMRig to use the CUDA plugin for GPU mining\n\nNo additional configuration is required to enable CUDA support. The container includes CUDA Toolkit 12.4 for building the plugin, which supports most modern NVIDIA GPUs. Building from source ensures maximum compatibility and performance.\n\n#### AMD GPUs\n\nTo use AMD GPUs for mining, you need to pass through the GPU devices:\n\n```bash\ndocker run --privileged --device=/dev/dri:/dev/dri --device=/dev/kfd:/dev/kfd simeononsecurity/xmrig:latest -o pool.example.com:3333 -u YOUR_WALLET_ADDRESS -p x -k --opencl\n```\n\n#### Using Docker Compose\n\nThe included `docker-compose.yml` file is pre-configured for both NVIDIA and AMD GPU support. Simply uncomment the relevant sections and run:\n\n```bash\ndocker-compose up -d\n```\n\n## Building the Image\n\n```bash\ndocker build -t xmrig .\n```\n\n## Security Considerations\n\n- Running containers with the `--privileged` flag grants extensive permissions to the container, which could be a security risk. Only use this container in trusted environments.\n- Always verify the source of Docker images before running them, especially for cryptocurrency mining software.\n\n## License\n\nThis Dockerfile and associated scripts are provided under the Apache License 2.0. XMRig itself is subject to its own licensing terms.\n\n\n\u003ca href=\"https://simeononsecurity.com\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003ch2\u003eExplore the World of Cybersecurity\u003c/h2\u003e\n\u003c/a\u003e\n\u003ca href=\"https://simeononsecurity.com\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003cimg src=\"https://simeononsecurity.com/img/banner.png\" alt=\"SimeonOnSecurity Logo\" width=\"300\" height=\"300\"\u003e\n\u003c/a\u003e\n\n### **Links:**\n- #### [github.com/simeononsecurity](https://github.com/simeononsecurity)\n- #### [simeononsecurity.com](https://simeononsecurity.com)\n\n\n","funding_links":["https://github.com/sponsors/simeononsecurity","https://simeononsecurity.com","https://simeononsecurity.com/recommendhome","https://simeononsecurity.com/affiliate","https://twitter.com/simeonsecurity","https://discord.io/cybersentinels"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeononsecurity%2Fxmrig-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimeononsecurity%2Fxmrig-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimeononsecurity%2Fxmrig-docker/lists"}