运行命令行工具时避免密钥环消息 [英] Avoid keyring messages when running command line tools

查看:27
本文介绍了运行命令行工具时避免密钥环消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行命令行实用程序(在这种情况下为 pgcli)时收到这两条消息在 Docker 中运行的无头 Linux:

I am getting these two messages when running a command line utility (in the case pgcli) in an headless Linux running in Docker:

No handlers could be found for logger "keyring.backend"
Please enter password for encrypted keyring:

如何为密钥环配置记录器和密码,以便在运行任何依赖于密钥环的实用程序时不再烦恼?

How can I configure the logger and the password for keyring, so that I am no longer bothered when running any utility dependent on keyring?

请注意,我使用的是无头 Ubuntu,因此我需要知道如何从命令行执行此操作.

Note that I am on an headless Ubuntu, so I need to know how to do this from the command line.

谢谢

推荐答案

v1.10.2 现已发布,keyring 可选.在无头系统上使用 pgcli 应该不再是问题.

v1.10.2 is now out, with keyring optional. Using pgcli on a headless system should not be a problem anymore.

这篇关于运行命令行工具时避免密钥环消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆