Display error message when docker ps -a command fails#712
Display error message when docker ps -a command fails#712DeMonkeyCoder wants to merge 1 commit intoo1-labs:mainfrom
docker ps -a command fails#712Conversation
|
Hey @DeMonkeyCoder, |
I think the best way to do this is to check if stderr includes 'permission denied,' because checking if the user is a member of the Docker group is not enough, as the group permissions might not take effect until after restarting. |
|
@DeMonkeyCoder I'd say it will be better to simply outline the possibility of enabling the debug logging (for the lightnet subcommand only at this stage) in this repository's |
Currently, when the
docker ps -acommand fails, the CLI displays a generic error message that does not clearly indicate the underlying issue, making debugging difficult. For instance, in my case, the Docker Engine was running but encountered permission issues. The generic error message left me confused until I manually randocker ps -ain the shell, which provided the actual error details.