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?