YAC*_*YAC 6 linux git authentication docker alpine-linux
这实际上是我上一个问题的后续问题。
我正在尝试使用 docker 托管个人笔记 Web 服务,并希望备份该服务生成的数据(我的笔记)。目前,我计划使用 git 来提交、拉取和推送到存储库以实现我的目的。
要执行 git pull 和 push,我的 docker 映像需要托管我的凭据。实现这一目标最简单但安全的方法是什么?
到目前为止我所做的:
Alpine
作为我的服务图像的基础图像。libsecret
根据这篇文章,我用谷歌搜索了一段时间,决定将其用作我的 git 凭证助手。libsecret
并设置了我的 git 凭证助手git-credential-libsecret
git-credential-libsecret
但是,到目前为止我还无法发挥作用。以下是我遇到的几个问题:
首先我测试了一下git-credential-libsecret get
,出现如下错误:
CRITICAL **: could not connect to Secret Service: Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file */var/lib/dbus/machine-id*: No such file or directory
dbus
并运行解决了这个问题dbus-uuidgen > /var/lib/dbus/machine-id
然后我再次尝试跑步git-credential-libsecret get
。这一次,报道称:
CRITICAL **: could not connect to Secret Service: Cannot autolaunch D-Bus without X11 $DISPLAY
dbus-x11
并运行dbus-launch --sh-syntax
(从这里),但这次没有运气。错误仍在继续。总之,我想知道:
归档时间: |
|
查看次数: |
11354 次 |
最近记录: |