Tag: 钥匙

docker不开始使用gcloud密钥作为卷

我正在创build一个Hubot的项目来访问谷歌云sdk中的机器,但docker不运行。 我正在发送文件 Dockerfile: https: //gist.github.com/gmdutra/b28d42075ba8a53a512f8a23d801a417 launch.sh:https://gist.github.com/gmdutra/49dae64e1033a996ee5f2114fcbc6be7

ssh-agent在DC / OS中的Docker容器中运行时不记得身份

我正在尝试使用DC / OS和Docker运行服务。 我从这里使用我的地区的模板创build我的堆栈。 我还创build了以下Dockerfile: FROM ubuntu:16.04 RUN apt-get update && apt-get install -y expect openssh-client WORKDIR "/root" ENTRYPOINT eval "$(ssh-agent -s)" && \ mkdir -p .ssh && \ echo $PRIVATE_KEY > .ssh/id_rsa && \ chmod 600 /root/.ssh/id_rsa && \ expect -c "spawn ssh-add /root/.ssh/id_rsa; expect \"Enter passphrase for /root/.ssh/id_rsa:\" send \"\"; interact " && […]