Run docker command after run
Hello everyone, I hope you are all well.
I'm trying to install Apache Superset in a Railway container.
I can do it without docker-compose, but I have to execute some docker commands once the container is up by entering into the container with "docker exec --it superset", but I don't know exactly how to do it through Railway. More info about the commands to be run here: https://hub.docker.com/r/apache/superset
Is there any way to do an exec into a container running on Railway and get interactive shell? Or any way I can run this command?
Thanks in advance and congratulations for your nice work.
7 Replies
Project ID:
f33a1b6f-64f6-4731-b213-94e51d1b9b89
f33a1b6f-64f6-4731-b213-94e51d1b9b89
railway doesn't provide any ssh or console access, so anything that needs to be installed or ran in the container would have to be done through a custom dockerfile or a nixpacks.toml
Thanks @Brody, extending the Dockerfile was an easy answer, sorry for that!
For anyone looking for the Dockerfile content:
little tip, for multiline code, wrap the code in triple back ticks instead of single backticks
@Brody As if I haven't used Markdown in my life🤣 Thanks again for your fast reply!
no problem, happy you came to a solution!