Update Docker Image

Hey there,

I want to know how to update a docker source image for my project.

For example, how can I update my existing and running image if there's a new update for the docker image?

If you're here, Brody, you know the context of my question. Just think about the steps to update their source image when there's a new image.

7 Replies

brody
EMPLOYEE

2 years ago

Since you are using the latest tag, 3-dot menu on the latest deployment -> Redeploy.

If there's a new image it will be pulled and run, if there isn't, then the same image is deployed.


Perfect! That's what I'm thinking just confirming if that's how it works.


brody
EMPLOYEE

2 years ago

P.S. Im always here, sooner or later :)


kmkoushik
PRO

a year ago

is there a way to automate this?


I think by calling redeploy from the Railway API.


brody
EMPLOYEE

a year ago

The mutation you would want for that would be serviceInstanceRedeploy


mlornesmith
TRIAL

a year ago

I assume redeploying wipes the database and starts from a clean slate? Is there a way to update the app I am using when there is a new docker image without losing my data?


Loading...