Skip to content

Commit 404cb18

Browse files
Merge pull request #15115 from giuseppe/sc_drop_var_lib_docker
Automatic merge from submit-queue (batch tested with PRs 17476, 17143, 15115, 17094, 17500). node, syscontainer: drop /var/lib/docker mount point Reference: #15105 Signed-off-by: Giuseppe Scrivano <[email protected]>
2 parents 32c11e8 + d14bce0 commit 404cb18

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

images/node/system-container/config.json.template

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,11 @@
414414
},
415415
{
416416
"type": "bind",
417-
"source": "/var/lib/docker",
418-
"destination": "/var/lib/docker",
417+
"source": "/var/lib/docker/containers",
418+
"destination": "/var/lib/docker/containers",
419419
"options": [
420420
"bind",
421+
"slave",
421422
"rw",
422423
"mode=755"
423424
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
#!/bin/sh
22
source /run/$NAME-env
33

4+
UMOUNT_TARGET=/var/lib/docker/containers
5+
6+
findmnt -R -A -nuo TARGET --raw $UMOUNT_TARGET | tr -d '\r' | grep -v "^$UMOUNT_TARGET$" | \
7+
while read i;
8+
do
9+
umount -lR $i
10+
done
11+
412
exec /usr/local/bin/origin-node-run.sh

0 commit comments

Comments
 (0)