From dcd6ebaca5c5dfccdb2df65f5782994f9d0a95e0 Mon Sep 17 00:00:00 2001 From: e-tmplr <160745041+e-tmplr@users.noreply.github.com> Date: Wed, 21 Feb 2024 14:58:32 +0100 Subject: [PATCH] Automatically remove the named container to allow reruns --- scripts/docker/build_cyclonedds.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docker/build_cyclonedds.sh b/scripts/docker/build_cyclonedds.sh index 9e364cae0f..c03f20d248 100755 --- a/scripts/docker/build_cyclonedds.sh +++ b/scripts/docker/build_cyclonedds.sh @@ -21,6 +21,6 @@ echo "WORKSPACE is $WORKSPACE" docker run -it --rm -v $WORKSPACE/:/cyclonedds --workdir /cyclonedds $IMAGE_NAME /bin/bash -c "./scripts/build.sh clean" # Launch the docker after build -docker run --name $CONTAINER_NAME -it -v $WORKSPACE/:/cyclonedds --workdir /cyclonedds $IMAGE_NAME /bin/bash +docker run --name $CONTAINER_NAME -it --rm -v $WORKSPACE/:/cyclonedds --workdir /cyclonedds $IMAGE_NAME /bin/bash # If you want to connect to the above docker to run cyclonedds examples (multiple apps in separate terminals) , use the below command # docker exec -it cyclonedds /bin/bash \ No newline at end of file