Dump docker daemon logs before finish
This make the docker daemon logs available to the CI system. Change-Id: I36ef41396e6c1d56f6b7cfe773b588d4892aa8b2
This commit is contained in:
parent
1f79d17844
commit
90a817f14d
|
@ -38,6 +38,10 @@ echo_summary "Devstack-plugin-container's post_test_hook.sh was called..."
|
||||||
# Verify that Docker is installed correctly by running the hello-world image
|
# Verify that Docker is installed correctly by running the hello-world image
|
||||||
sudo -H -u stack docker run hello-world
|
sudo -H -u stack docker run hello-world
|
||||||
|
|
||||||
|
# Copy over docker systemd unit journals.
|
||||||
|
mkdir -p $WORKSPACE/logs
|
||||||
|
sudo journalctl -o short-precise --unit docker | sudo tee $WORKSPACE/logs/docker.txt > /dev/null
|
||||||
|
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
|
|
||||||
$XTRACE
|
$XTRACE
|
||||||
|
|
Loading…
Reference in New Issue