File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -24,23 +24,6 @@ if [[ "${BAZEL_REMOTE_CACHE_ENABLED}" == "true" ]]; then
2424fi
2525
2626
27- # used by cleanup_dind to ensure binfmt_misc entries are not persisted
28- # TODO: consider moving *all* cleanup into a more robust program
29- cleanup_binfmt_misc () {
30- # make sure the vfs is mounted
31- # TODO: if this logic is moved out and made more general
32- # we need to check that the host actually has binfmt_misc support first.
33- if [ ! -f /proc/sys/fs/binfmt_misc/status ]; then
34- mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
35- fi
36- # https://www.kernel.org/doc/html/v4.13/admin-guide/binfmt-misc.html
37- # You can remove one entry or all entries by echoing -1
38- # to /proc/.../the_name or /proc/sys/fs/binfmt_misc/status.
39- echo -1 > /proc/sys/fs/binfmt_misc/status
40- # list entries
41- ls -al /proc/sys/fs/binfmt_misc
42- }
43-
4427# runs custom docker data root cleanup binary and debugs remaining resources
4528cleanup_dind () {
4629 barnacle || true
@@ -50,8 +33,6 @@ cleanup_dind() {
5033 docker volume ls || true
5134 # cleanup binfmt_misc
5235 echo " Cleaning up binfmt_misc ..."
53- # note: we run this in a subshell so we can trace it for now
54- (set -x; cleanup_binfmt_misc || true)
5536}
5637
5738# optionally enable ipv6 docker
You can’t perform that action at this time.
0 commit comments