英文:
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"
],
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论