Category : sudo

I am trying to fetch docker stats for the containers that are present on a different server using sshpass like below with sudo sshpass -p "${pass}" ssh -o StrictHostKeyChecking=no [email protected] echo "${pass}" | sudo -S -u root "docker stats –no-stream" sshpass -p "${pass}" ssh -o StrictHostKeyChecking=no [email protected] echo "${pass}" | sudo -S "docker stats –no-stream" ..

Read more