Why does gnome-keyring-daemon fail with "Operation not permitted" in a Dev Container?

huangapple go评论72阅读模式
英文:

Why does gnome-keyring-daemon fail with "Operation not permitted" in a Dev Container?

问题

我试图按照 Zowe CLI 在无头 Linux 操作系统上配置安全凭据存储 的指南进行操作,但是当我运行以下命令时...

export $(dbus-launch)
gnome-keyring-daemon -r --unlock --components=secrets

...我收到以下错误信息...

bash: /usr/bin/gnome-keyring-daemon: 操作不允许

我正在运行在基于 mcr.microsoft.com/devcontainers/java 镜像的 Visual Studio Code Dev Container 中。

英文:

I am trying to follow the Zowe CLI Configuring Secure Credential Store on headless Linux operating systems instructions, however when I run the following commands...

export $(dbus-launch)
gnome-keyring-daemon -r --unlock --components=secrets

...I get this error...

bash: /usr/bin/gnome-keyring-daemon: Operation not permitted

I'm running in a Visual Studio Code Dev Container based on the mcr.microsoft.com/devcontainers/java image.

答案1

得分: 1

感谢GitHub问题评论,其中描述了使用--cap-add=IPC_LOCK启动容器以运行gnome-keyring-daemon的要求,我通过更新我的devcontainer.json文件,成功使Zowe CLI工作。

	"capAdd": [
		"IPC_LOCK"
	],
英文:

Thanks to a GitHub issue comment which described the requirement to start containers with --cap-add=IPC_LOCK to run gnome-keyring-daemon, I was able to get the Zowe CLI to work by updating my devcontainer.json file with...

	"capAdd": [
		"IPC_LOCK"
	],

huangapple
  • 本文由 发表于 2023年3月8日 19:15:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/75672304.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定