This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new f1c9c88f7e7 branch-3.0: [fix](docker)Add docker-ps 'sudo' permissions 
#52395 (#52456)
f1c9c88f7e7 is described below

commit f1c9c88f7e7869cf5b488d75177a9b983a68779f
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Jun 28 17:26:53 2025 +0800

    branch-3.0: [fix](docker)Add docker-ps 'sudo' permissions #52395 (#52456)
    
    Cherry-picked from #52395
    
    Co-authored-by: wuwenchi <[email protected]>
    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 6888c0189d0..26580301dd9 100755
--- a/docker/thirdparties/run-thirdparties-docker.sh
+++ b/docker/thirdparties/run-thirdparties-docker.sh
@@ -790,12 +790,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]

Reply via email to