Add container name and reuse logic for rvc-intel-dev #1117
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the docker_run_rvc_img.sh script to improve usability and reproducibility when working with the RVC Intel development environment. The current script does not provide a name, thus it uses an auto-generated name. This causes additional executions of the script to generate n number of containers. The fix provides a container name (rvc-intel-dev) and checks for its existence prior to creating a new container. Both branches of logic dump the user into an interactive bash shell as was previously seen
Any Newly Introduced Dependencies
No
How Has This Been Tested?
This has been tested by running the script with the rvc-intel-dev container already existing to test the "start the existing container " logic, as well as with that container removed to test the "create a new named container" logic.
Checklist: