Skip to content

Commit 49cc180

Browse files
clintharrisonsmukherj1
authored andcommitted
Add cleanup before docker run in incremental loader (#793)
1 parent bbbb8b1 commit 49cc180

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

container/incremental_load.sh.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ function read_variables() {
241241
# An optional "docker run" statement for invoking a loaded container.
242242
# This is not executed if the single argument --norun is passed.
243243
if [ "a$*" != "a--norun" ]; then
244+
# Once we've loaded the images for all layers, we no longer need the temporary files on disk.
245+
# We can clean up before we exec docker, since the exit handler will no longer run.
246+
cleanup
247+
244248
# This generated and injected by docker_*.
245249
exec %{run_statements}
246250
fi

0 commit comments

Comments
 (0)