Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dockers container image update

So let's say I've a .NET Core application running in a container, i'm running it on a custom network with it's own IP in the subnet ( important that the IP stays the same for this app).

I've added some new functionality to my .NET Core application and want to redeploy it. Is it possible that I pull the new image, just stop the container, "update" it's image and restart the container, instead of stopping, removing and running the image again with the right commands for the network and ip?

Regards!

like image 309
TanguyB Avatar asked Apr 21 '26 13:04

TanguyB


1 Answers

Unfortunately if image was updated, you need to create new container based on new image. No another way.

But you can set static IP for container how explains in this question

like image 114
Bukharov Sergey Avatar answered Apr 24 '26 03:04

Bukharov Sergey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!