Script for fixing Podman not being able to start stopped, privileged, containers due to gone-missing /dev
nodes, e.g. when a USB device was unplugged since container creation.
Additionally requires jq
to be installed.
podman#4900: a rootless privileged container refuses to start if a host device layout has changed
./fix.sh container-id dev-node
for example
./fix.sh d43fdc7199a4c9475c9b51ee3e0cc667d55376ff7182befcaecfe6779b6d56cb /dev/bus/usb/003/003
Used tools:
- Podman from Debian repos
- boltcli from source, containerized in docker.io/golang
- jq from Debian repos