containerd / containerd/nerdctl
How can I read the contents of the USB dongle after restarting the container
- Dominant language
- Go
- Stars
- 10.4k
- Forks
- 826
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 44
Description
### Description
When I use docker with `--network=host`, I insert the usb dongle. and then after restarting the docker container, I can read the usb content. However, I use `nerdctl` to run the container and insert the usb dongle. After `nerdctl restart` , I cannot read the usb content. The reason is that docker is in After restarting, `/dev/usb` can be mounted in the container I guess
### Steps to reproduce the issue
1.`nerdctl run --network=host --privileged=true images:v1.0.0 --name=test `
2.Insert the usb dongle
3.`nerdctl restart test `
4.read th usb dongle, it show `not found` , I guess `/dev/usb` can not be found , because when I mount `/dev/usb` in container ,it WORKS
### Describe the results you received and expected
After restarting container,I can read the usb dongle like docker
### What version of nerdctl are you using?
1.7.2
### Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
### Host information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.