Skip to content

Commit

Permalink
BUG: Error removing container by circleCI
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MayeulChassagnard committed Nov 9, 2016
1 parent c5b5199 commit 8a706f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMake/CircleCI/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
script_dir="`cd $(dirname $0); pwd`"

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

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

# Remove the container used to mount volumes from slicer-build
docker rm slicer-build-with-test
#docker rm slicer-build-with-test
3 changes: 2 additions & 1 deletion CMake/CircleCI/run_opengl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ url="http://${ip}:$port"

cleanup() {
docker stop $container >/dev/null
docker rm $container >/dev/null
#docker rm $container >/dev/null
}

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

docker run \
-d \
--rm=false \
--name $container \
${mount_local} \
$port_arg \
Expand Down

0 comments on commit 8a706f8

Please sign in to comment.