This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 4f3b3539f35 [fix](docker)Add docker-ps 'sudo' permissions (#52395)
4f3b3539f35 is described below
commit 4f3b3539f35172cddb1f4d57f10cf75831087b6c
Author: wuwenchi <[email protected]>
AuthorDate: Sat Jun 28 11:20:07 2025 +0800
[fix](docker)Add docker-ps 'sudo' permissions (#52395)
### What problem does this PR solve?
Problem Summary:
Add docker-ps 'sudo' permissions.
Co-authored-by: wuwenchi.wwc <[email protected]>
---
docker/thirdparties/run-thirdparties-docker.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docker/thirdparties/run-thirdparties-docker.sh
b/docker/thirdparties/run-thirdparties-docker.sh
index 625de65d9a4..8f6a77bebf3 100755
--- a/docker/thirdparties/run-thirdparties-docker.sh
+++ b/docker/thirdparties/run-thirdparties-docker.sh
@@ -791,12 +791,12 @@ for compose in "${!pids[@]}"; do
echo ""
echo "print last 100 logs of the latest unhealthy container"
- docker ps -a --latest --filter 'health=unhealthy' --format '{{.ID}}' |
xargs -I '{}' sh -c 'echo "=== Logs of {} ===" && docker logs -t --tail 100
"{}"'
+ sudo docker ps -a --latest --filter 'health=unhealthy' --format
'{{.ID}}' | xargs -I '{}' sh -c 'echo "=== Logs of {} ===" && docker logs -t
--tail 100 "{}"'
exit 1
fi
done
echo "docker started"
-docker ps -a --format "{{.ID}} | {{.Image}} | {{.Status}}"
+sudo docker ps -a --format "{{.ID}} | {{.Image}} | {{.Status}}"
echo "all dockers started successfully"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]