Running nvidia cuopt server on WSL2 from scratch

  1. Follow these instructions to get Ubuntu with WSL2
sudo docker run -it --gpus all --rm --network=bridge
docker: Error response from daemon: 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: nvidia-container-cli: mount error: file creation failed: /var/lib/docker/overlay2/539c88be4ef911f3886406a0d84829121eca7de952f700fcf378d273c3783852/merged/usr/lib/x86_64-linux-gnu/ file exists: unknown.
sudo docker run --privileged -it --rm --entrypoint /bin/bash
# umount /usr/lib/x86_64-linux-gnu/
# umount usr/lib/x86_64-linux-gnu/
# rm -rf usr/lib/x86_64-linux-gnu/
# rm -rf /usr/lib/x86_64-linux-gnu/
# docker container list 
# docker commit b52e37fe5592 docker images
sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE latest 36228ad5936a 11 seconds ago 14.4GB <none> 21e508bdd168 5 weeks ago 14.4GB
sudo docker run -it --gpus all --rm --network=bridge -p 5000:5000
# conda activate cuopt
# python cuopt-service/
FastAPI documentation page



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Michael T. Wagner

Michael T. Wagner


CTO and Co-Founder, creating clever solutions for smart factory