Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am trying to use STM32CubeProgrammer within Ubuntu 20.04 inside Docker container. As a step to prepare USB serial link for flashing as given in STM32CubeProgrammer I need to do:

cd <your STM32CubeProgrammer install directory>/Drivers/rules
sudo cp *.* /etc/udev/rules.d/

But /etc/udev/ directory is not available.

Is it safe to create this directory to access USB devices and what files should be part of this directory?

A Docker container won't usually have access to host devices, and it won't be running the tools necessary for Linux subsystems like udev. This task will be much easier to run outside a container. – David Maze Dec 28, 2021 at 14:31

I had the same problem when creating a kinect4azure Docker image. I fixed it by installing the udev package.

sudo apt -y install udev

after that lsusb also gave more info about the connected usb devices.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.