Open berlic opened 5 years ago
using set -x
before docker inspect <tab>
prints the commands executed by bash doing the completion.
Completion is sending the command docker node ls --format '{{.Hostname}}'
which is then triggering the error message.
Maybe it would help to skip these calls when there is no swarm configured. Not certain whether there is an easy way to detect this. docker info | grep Swarm:
gives some hints.
Also, zsh completion is a complete mess. It does not raise an error. Instead, it is a huge pile of garbage and misaligned text.
Something somewhere is terribly wrong with docker inspect.
Docker version 19.03.13-ce, build 4484c46d9d OS: Arch Linux Package: community/docker 1:19.03.13-1
Description
Bash completion script rises daemon error messages on
docker inspect
.It felt really nervous to receive this alarm from monitoring system:
I thought someone is snooping for secrets inside the network.
Steps to reproduce the issue:
docker inspect <tab>
in BashDescribe the results you received: Error messages in log files
Describe the results you expected: No errors
Output of
docker version
: