CI: fix check-failure.sh sudo missing
this produces errors itself, e.g.: ``` for container in $failed_containers + docker inspect prometheus_openstack_exporter [] permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/prometheus_openstack_exporter/json": dial unix /var/run/docker.sock: connect: permission denied ``` Signed-off-by: Sven Kieske <kieske@osism.tech> Change-Id: I280e2660d187d966098ae39df6392503b1aa5bdf
This commit is contained in:
parent
8025341023
commit
c508479f44
@ -15,8 +15,8 @@ check_podman_failures() {
|
||||
--filter status=unknown)
|
||||
|
||||
for container in $failed_containers; do
|
||||
podman inspect $container
|
||||
podman logs $container
|
||||
sudo podman inspect $container
|
||||
sudo podman logs $container
|
||||
done
|
||||
}
|
||||
|
||||
@ -41,8 +41,8 @@ check_docker_failures() {
|
||||
--filter status=dead)
|
||||
|
||||
for container in $failed_containers; do
|
||||
docker inspect $container
|
||||
docker logs $container
|
||||
sudo docker inspect $container
|
||||
sudo docker logs $container
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user