Skip to content

Commit db81a42

Browse files
BUG: Error removing container by circleCI
FROM https://circleci.com/docs/docker-btrfs-error/ ``` When Docker creates a container, the container is created on Btrfs, the filesystem that we use to store all build containers, and removing a container is equivalent to removing a Btrfs subvolume. However, the Docker process doesn’t have permission to remove btrfs subvolumes, resulting in the error ``` BUG: --rm=false replaced by commenting docker rm cmd
1 parent 693bfe8 commit db81a42

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CMake/CircleCI/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
script_dir="`cd $(dirname $0); pwd`"
44

55
# Run the images which contains the build of slicer (to link with the testing image with mounted volume)
6-
docker run -d --name slicer-build-with-test slicer/slicer-test bash
6+
docker run -d --rm=false --name slicer-build-with-test slicer/slicer-test bash
77

88
# Run the opengl docker image which will run the tests located on the volume shared by slicer/slicer-build
99
$script_dir/run_opengl.sh \
@@ -13,4 +13,4 @@ $script_dir/run_opengl.sh \
1313
-r --volumes-from -r slicer-build-with-test
1414

1515
# Remove the container used to mount volumes from slicer-build
16-
docker rm slicer-build-with-test
16+
#docker rm slicer-build-with-test

CMake/CircleCI/run_opengl.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ url="http://${ip}:$port"
9292

9393
cleanup() {
9494
docker stop $container >/dev/null
95-
docker rm $container >/dev/null
95+
#docker rm $container >/dev/null
9696
}
9797

9898
running=$(docker ps -a -q --filter "name=${container}")
@@ -126,6 +126,7 @@ fi
126126

127127
docker run \
128128
-d \
129+
--rm=false \
129130
--name $container \
130131
${mount_local} \
131132
$port_arg \

0 commit comments

Comments
 (0)