添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
八块腹肌的小刀  ·  Docker:Spring ...·  1 周前    · 
细心的泡面  ·  Hashicorp Vault : “ ...·  1 周前    · 
发财的太阳  ·  GitHub - ...·  1 周前    · 
勤奋的鸭蛋  ·  RUN Instruction Using ...·  6 天前    · 
小眼睛的火车  ·  How to run Docker ...·  14 小时前    · 
曾深爱过的电池  ·  Re: Error - ...·  5 月前    · 
玉树临风的小虾米  ·  知乎日报 - 知乎·  7 月前    · 
高兴的硬币  ·  5 fast & effective ...·  8 月前    · 

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In a non-ruby project, with the following registry block in deploy.yml :

registry:
  server: ghcr.io
  username: myuser
  password: ["KAMAL_REGISTRY_PASSWORD"]

and the following in .env:

KAMAL_REGISTRY_PASSWORD=the_password

I get the following when running kamal registry login:

  ERROR (SSHKit::Command::Failed): docker exit status: 256
docker stdout: Nothing written
docker stderr: WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get "https://ghcr.io/v2/": denied: denied

However, if I inline the env var like this: KAMAL_REGISTRY_PASSWORD=the_password kamal registry login then it logs in successfully.

So it appears that for some reason it's not auto-loading the vars in the .env.

Do I need to do anything special to get dotenv to load the file?

This format sets the password as-is instead of loading from .env:

password: ["KAMAL_REGISTRY_PASSWORD"]

You want something like this. If you only need the one username then you can keep that like you have but the password part should be structured like this to load from .env.

registry:
  username:
    - KAMAL_REGISTRY_USERNAME
  password:
    - KAMAL_REGISTRY_PASSWORD
          

heys guys,
having the same problem

ERROR (SSHKit::Command::Failed): docker exit status: 256
docker stdout: Nothing written
docker stderr: WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get "https://registry-1.docker.io/v2/": EOF

when running kamal setup

This happens to me when using a non-root user.
These commands that I've manually run helped (source):

# no need to add a docker group, it's already exists
# sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
          

Hey Folks,

I had the same problem as @lethunder

ERROR (SSHKit::Command::Failed): docker exit status: 256
docker stdout: Nothing written
docker stderr: WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get "https://registry-1.docker.io/v2/": EOF

It turned out it was because docker was not running. I turned on docker via the Desktop app on my m2 Mac