MqDockerUp icon indicating copy to clipboard operation
MqDockerUp copied to clipboard

Implement MqDockerUp Self-Update

Open MichelFR opened this issue 2 years ago • 1 comments

I have identified an issue with MqDockerUp that prevents it from being able to update itself. The problem is that when we update the docker container, it pulls the newest image, stops and removes the container, but is not able to reach the code to create a new container with the newly pulled image.

To solve this issue, I propose creating a separate project named "MqDockerUp-Update" with a separate docker image that binds to the docker.sock to pull the newest image, stop and remove the MqDockerUp container, and create a new docker container instance. I believe this is a better approach than creating the new container before deleting the old one, which may cause problems and needs to be tested first.

I welcome contributions and would be happy to hear if someone has a better idea on how to solve this issue. It would be beneficial to avoid having two instances of the same image running, which is why I think having a separate project named "MqDockerUp-Update" for updating MqDockerUp is a good solution. To implement this feature, I will need to code and test it. This issue is being raised to track the progress of implementing the MqDockerUp self-update feature.

MichelFR avatar Feb 25 '23 13:02 MichelFR