Allow SSH access to containers via CLI
planned
Daniel Sieradski
I have a project that works in my local environment but not once pushed to Railway. If I could login to the container like I can locally, I could determine what the differences are that are causing the problem. Add a function like the "connect" command in the CLI to connect to the actual container.
曾明健
It's significant. I deploy a code server on Railway. If the code server backend crash, I will easily lose my code!
Angelo Saraceno
planned
We think that there are enough legit use cases for this. Going to plan on how this might make sense for us.
E
Eric
You can now basically do this by using Tailscale. It's not a replacement for it being built into Railway, but it’s a viable alternative. https://tailscale.com/blog/tailscale-ssh/
Jake Cooper
under review
Full Disclosure: We're pretty staunchly opposed to allowing people to SSH in because it affects the immutability property of the infrastructure
Example:
You go in and change a setting while SSH'd to fix an issue
You create a deployment
That deploy is now broken
Happy to dig into what exactly you'd want out of SSH. If it's file retrieval, we can look into allowing you to inspect the filesystem of the container itself (as read only)
Erisa A
Jake Cooper: For me personally it would be about shell access for debugging rather than editing: if something goes wrong in a deployment then I can connect to a shell in the container and debug the problem there and then, before deploying the solution properly afterwards.
An alternative would be the ability to pull the image down locally and investigate there. Of course if your application is built with Dockerfile this is easy by building locally but in the case of buildpacks I found it quite hard to debug issues that occurred in the buildpack environment and not locally.
Erisa A
Islam El'ewady: on Heroku there's a "console" option that lets you drop into a shell inside a container to do live debugging. Unsure about CLI access, but it exists on their web interface.
Behaviour like this for Railway would be a huge bonus.
Islam El'ewady
Erisa A: agree on dokku i can do
dokku enter app
and i am in for a treatIslam El'ewady
does this feature exist in heroku or dokku ? cloudfoundary uses buildpacks too and I am guessing you can't ssh into the container..don't know