The Silence Map

Asked on Super User by Andrew Fielden, 2 years ago. No reply there for at least a week.

How to automatically mount a removable USB device in a Docker Desktop Linux container

Problem: I want to run a Linux container via Docker Desktop, and have a removable device (e.g. USB stick) automatically mount within the container, when it's inserted. Up until now, I've been using WSL2 to run Ubuntu. This allows me to mount a USB drive locally with the following command # sudo mount -t drvfs d: /mnt/d I'm issuing this command via a Python web application. I now want to Dockerise my application, and it has to run in Docker Desktop . Some initial testing running a Linux container in WSL2 has not been successful: # mkdir /mnt/d # mount -t drvfs d: /mnt/d mount: /mnt/d: unknown f

This question is one of 1 report of the same problem:

How to automatically mount a removable USB device in a Docker Desktop Linux container

Nobody has answered it yet, here or anywhere.

Related problems

Question by Andrew Fielden on Super User, licensed CC BY-SA. We show a short excerpt and link to the original thread as credit.