2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

docker-test: set log file path

By default docker writes logs in a run-time directory unique for each
container. To be able to read this file, we can specify the path in
CRIU's configuration file for runc.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
Radostin Stoyanov
2021-02-03 23:48:26 +00:00
committed by Andrei Vagin
parent 046cad8bf0
commit a433943a7f

View File

@@ -26,6 +26,10 @@ add-apt-repository \
# Switch to devicemapper
echo '{ "experimental": true, "storage-driver": "devicemapper" }' > /etc/docker/daemon.json
CRIU_LOG='/criu.log'
mkdir -p /etc/criu
echo "log-file=$CRIU_LOG" > /etc/criu/runc.conf
service docker stop
# Restore with containerd versions after v1.2.14 and before v1.5.0-beta.0 is broken.
@@ -62,7 +66,7 @@ for i in $(seq 50); do
docker start --checkpoint checkpoint"$i" cr 2>&1 | tee log || {
cat "$(grep log 'log file:' | sed 's/log file:\s*//')" || true
docker logs cr || true
cat /tmp/zdtm-core-* || true
cat $CRIU_LOG || true
dmesg
docker ps
exit 1