This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
podman run \ | |
-i `#Keep STDIN open even if not attached`\ | |
-t `#Allocate a pseudo-TTY for container`\ | |
--rm `#Remove container (and pod if created) after exit`\ | |
-e CARGO_HOME=./cargo `#persist registry within project`\ | |
-v ./:/new_rust_project `#Bind mount a volume into the container`\ | |
--security-opt label=disable `#allow me to write on mounted volume`\ | |
-w /new_rust_project `#Working directory inside the container`\ | |
--name rust_cmd `#Assign a name to the container`\ |