Closed mbajur closed 6 months ago
It turned out to be caused by the fact I'm not able to run a following command: $ /usr/bin/env docker
and as a temporary solution, i was able to make kamal setup pass by making sure export PATH=$PATH:~/.docker/bin
is in my ~/.bashrc
file and running $ source ~/.bashrc
before calling kamal setup
but that's not ideal and i would love to know how to make docker
command accessible through /usr/bin/env
. Any tips much appreciated but if you don't want to bother - feel free to close the issue :)
@mbajur This is explained in the documentation, see https://kamal-deploy.org/docs/configuration#using-a-different-ssh-user-than-root
Can you close the issue if this solves your problem?
Hmm i don't think that's the case as the issue is happening on my local machine. I had to use $ source
on my laptop, not on the server.
@mbajur This error is related to your local system. I described a similar scenario here. The scenario is similar because Kamal tries to execute docker
locally in order to log in the registry.
i THINK i managed to fix that by using system docker setup instead of user docker setup in docker dashboard settings thing. Probably not the ideal solution but working for me so far so i'm gonna close that. Thanks for your replies!
Hey,
I'm trying to play with Kamal for production setup of one of my clients and i got stuck on
kamal setup
. Basically, right after docker login step, command throwsERROR (Errno::ENOENT): No such file or directory - docker
error and i'm not sure what to do about it.Command output:
deploy.yml file
I'm on MacOS Ventura 13.6.1 / ruby 3.2.0