在 ubuntu 上使用 sudo docker login -u <username> -p <password> 登录时,报错:

WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

解决方法


sudo apt-get install pass gnupg2