run
The command run has some options:
rfswift run --help
[...]
Usage:
rfswift run [flags]
Flags:
-b, --bind string extra bindings (separate them with commas)
-e, --command string command to exec (by default: '/bin/bash')
-d, --display string set X Display (by default: 'DISPLAY=:0', and separate them with commas)
-x, --extrahosts string set extra hosts (default: 'pluto.local:192.168.1.2', and separate them with commas)
-h, --help help for run
-i, --image string image (default: 'myrfswift:latest')
-p, --pulseserver string PULSE SERVER TCP address (by default: tcp:localhost:34567) (default "tcp:localhost:34567")
Binding a directory
If needed, for example when using a PlutoSDR device, you can add some more bindings than those used by default:
rfswift run -b "/run/dbus/system_bus_socket:/run/dbus/system_bus_socket,/dev/snd:/dev/snd,/dev/dri:/dev/dri"
Tip
This binding option may be perfect if you do not want to commit any changes of your container, but need at least results by making a sharing directory as follows:
/home/fluxius/Project/RF-Swift/HWIO2024/part1/Labs:/root/Lab