kamal
kamal copied to clipboard
bug: Updating remote builder host in config.yaml doesn't update endpoint in Docker context
I had to run docker context remove <context> first, before running mrsk deploy again. But I feel that when updating config values for the remote, the docker context should update as well?
before
app: foo
builder:
remote:
arch: amd64
host: ssh://root@***
$ docker context ls
NAME DESCRIPTION DOCKER ENDPOINT ERROR
default * Current DOCKER_HOST based configuration unix:///var/run/docker.sock
desktop-linux unix:///Users/rasmus/.docker/run/docker.sock
mrsk-app-native-remote-amd64 mrsk-app-native-remote amd64 native host ssh://root@***
after
builder:
remote:
arch: amd64
host: ssh://changed-user-to-something-else-than-root@***
$ docker context ls
NAME DESCRIPTION DOCKER ENDPOINT ERROR
default * Current DOCKER_HOST based configuration unix:///var/run/docker.sock
desktop-linux unix:///Users/rasmus/.docker/run/docker.sock
mrsk-app-native-remote-amd64 mrsk-app-native-remote amd64 native host ssh://root@***
Stumbled upon this too. As a workaround, mrsk build remove seems to work too.
Me too. Thanks for this!
I also ran into this problem. I'm using the stages feature and stumbled across it not updating the ip address of the machine. Very difficult to debug as I thought there was a cache lying around somewhere.
I hit this today as well. Still appears to be an active issue in the latest release.