2 comments

[ 2.7 ms ] story [ 17.5 ms ] thread
I don't see why this needed to be written in Rust, if all you're doing is shelling out to the docker command. Could've been a shell script, I guess.
Yes I made similar shell scripts and it did work. Initially I wanted to use Docker Rust or Go libraries, but none actually allowed to start a functionnal interactive shell. The output is a bit prettier than my shell scripts so this version still wins in the end.