basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
9.38k stars 357 forks source link

Is there any way to access a specific container? #850

Closed marcuxyz closed 1 week ago

marcuxyz commented 2 weeks ago

Is there any way to access a specific container?

I created a container just to run a specific cron and I would like to access it. Well, the account is not being executed correctly. Can anyone help me?

References: https://github.com/basecamp/kamal/issues/47

Thanks

K4sku commented 1 week ago

You can run kamal app exec -i --reuse bash to get interactive bash, apply --hosts or --roles filters if necessary. See kamal app help exec for details.

Or simply ssh to host and then do docker exec -it <CONTAINER ID> /bin/bash to access in-container bash.

You can get CONTAINER ID from docker ps, it's a first column.

marcuxyz commented 1 week ago

Hello @K4sku thank you for reply my question. I will go check this point