Comments (2)
i also tried:
wget https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda_12.3.2_545.23.08_linux.run
sudo sh cuda_12.3.2_545.23.08_linux.run
also https://docs.nvidia.com/cuda/wsl-user-guide/index.html#getting-started-with-cuda-on-wsl-2
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-3
it seems to instal A LOT of stuff yet still doesn't work
i also tried:
sudo docker run --name miner --rm -it\
--gpus all \
-e CUDA=true \
-e POOL_URL=$POOL_URL \
-e POOL_USER=$POOL_USER \
-e POOL_PASS=$POOL_PASS \
-e DONATE_LEVEL=$DONATE_LEVEL \
-e OTHERS_OPTS="--tls" \
-e COIN="XMR" \
docker.io/metal3d/xmrig
and got:
docker: 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 running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: mount error: file creation failed: /var/lib/docker/overlay2/75428c7181166d422dbf96ebf3c24f1e8bc0c73e36dfa50e7bdb7907b4efc668/merged/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1: file exists: unknown
i also chated with chatgpt and tried this:
sudo rm -f /etc/systemd/system/nvidia-container-runtime.service.d/*
sudo systemctl daemon-reload
sudo systemctl restart docker
from docker-xmrig.
i searched this thread and it seems related to the image: NVIDIA/nvidia-container-toolkit#289
not sure if something can be modified but i am still researching
i tried even more stuff, like building the dockerfile without the nvidia stuff:
FROM ubuntu:22.04 as build-cuda-plugin
LABEL maintainer="Patrice Ferlet <[email protected]>"
ARG CUDA_PLUGIN_VERSION=6.17.0
RUN set -xe; \
apt update; \
apt install -y wget build-essential cmake automake libtool autoconf; \
apt install -y gcc-9 g++-9; \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100; \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100; \
wget https://github.com/xmrig/xmrig-cuda/archive/refs/tags/v${CUDA_PLUGIN_VERSION}.tar.gz; \
tar xf v${CUDA_PLUGIN_VERSION}.tar.gz; \
mv xmrig-cuda-${CUDA_PLUGIN_VERSION} xmrig-cuda; \
cd xmrig-cuda; \
mkdir build; \
cd build; \
cmake ..; \
make -j $(nproc);
FROM ubuntu:22.04 as build-runner
ARG VERSION=6.20.0
LABEL maintainer="Patrice Ferlet <[email protected]>"
RUN set -xe; \
apt update; \
apt install -y wget build-essential cmake automake libtool autoconf; \
apt install -y gcc-9 g++-9; \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100; \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100; \
rm -rf /var/lib/apt/lists/*; \
wget https://github.com/xmrig/xmrig/archive/refs/tags/v${VERSION}.tar.gz; \
tar xf v${VERSION}.tar.gz; \
mv xmrig-${VERSION} /xmrig; \
cd /xmrig; \
mkdir build; \
cd scripts; \
./build_deps.sh; \
cd ../build; \
cmake .. -DXMRIG_DEPS=scripts/deps; \
make -j $(nproc);
RUN set -xe; \
cd /xmrig; \
cp build/xmrig /xmrig
FROM ubuntu:22.04 as runner
LABEL maintainer="Patrice Ferlet <[email protected]>"
LABEL org.opencontainers.image.source="https://github.com/metal3d/docker-xmrig"
LABEL org.opencontainers.image.description="XMRig miner with CUDA support on Docker, Podman, Kubernetes..."
LABEL org.opencontainers.image.licenses="MIT"
RUN set -xe; \
mkdir /xmrig; \
apt update; \
apt -y install jq; \
rm -rf /var/lib/apt/lists/*
COPY --from=build-runner /xmrig/xmrig /xmrig/xmrig
COPY --from=build-runner /xmrig/src/config.json /xmrig/config.json
COPY --from=build-cuda-plugin /xmrig-cuda/build/libxmrig-cuda.so /usr/lib64/
ENV POOL_USER="44vjAVKLTFc7jxTv5ij1ifCv2YCFe3bpTgcRyR6uKg84iyFhrCesstmWNUppRCrxCsMorTP8QKxMrD3QfgQ41zsqMgPaXY5" \
POOL_PASS="" \
POOL_URL="xmr.metal3d.org:8080" \
DONATE_LEVEL=5 \
PRIORITY=0 \
THREADS=0 \
PATH="/xmrig:${PATH}" \
CUDA=false \
CUDA_BF="" \
ALGO="" \
COIN=""
WORKDIR /xmrig
ADD entrypoint.sh /entrypoint.sh
WORKDIR /tmp
EXPOSE 3000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["xmrig"]
from docker-xmrig.
Related Issues (8)
- Possible to add POOL_COIN and POOL_ALGO? HOT 8
- Possible to add 1gb pages ENV? HOT 1
- DNS failure HOT 1
- MSR kernel module is not available HOT 6
- Cannot bind to memory HOT 2
- TLS support? HOT 2
- Update to v6.20.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-xmrig.