Skip to content

Fix multi-container and multi-host overwrites#424

Open
libots wants to merge 27 commits intoMichelFR:mainfrom
libots:main
Open

Fix multi-container and multi-host overwrites#424
libots wants to merge 27 commits intoMichelFR:mainfrom
libots:main

Conversation

@libots
Copy link

@libots libots commented Feb 6, 2025

Relabels MQTT topics to work in prefix and container name to enable multiple copies of containers with same image and multiple hosts with containers with same image to not overwrite each other. #261 and #264.

MichelFR and others added 21 commits December 20, 2024 14:10
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.17.13 to 4.17.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

---
updated-dependencies:
- dependency-name: "@types/lodash"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [dockerode](https://github.com/apocas/dockerode) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/apocas/dockerode/releases)
- [Commits](apocas/dockerode@v4.0.2...v4.0.3)

---
updated-dependencies:
- dependency-name: dockerode
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [yaml](https://github.com/eemeli/yaml) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](eemeli/yaml@v2.6.1...v2.7.0)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@types/dockerode](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/dockerode) from 3.3.32 to 3.3.34.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/dockerode)

---
updated-dependencies:
- dependency-name: "@types/dockerode"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.2 to 5.7.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.7.2...v5.7.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [dockerode](https://github.com/apocas/dockerode) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/apocas/dockerode/releases)
- [Commits](apocas/dockerode@v4.0.3...v4.0.4)

---
updated-dependencies:
- dependency-name: dockerode
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.17.14 to 4.17.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

---
updated-dependencies:
- dependency-name: "@types/lodash"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [npm](https://github.com/npm/cli) from 11.0.0 to 11.1.0.
- [Release notes](https://github.com/npm/cli/releases)
- [Changelog](https://github.com/npm/cli/blob/latest/CHANGELOG.md)
- [Commits](npm/cli@libnpmhook-v11.0.0...v11.1.0)

---
updated-dependencies:
- dependency-name: npm
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Congratulations on your first pull request! We are excited to review your contribution to the project.

MichelFR and others added 6 commits February 13, 2025 12:51
Fixes MichelFR#404

Add error handling and container restart logic in DockerService.updateContainer function.

* Add try-catch block to handle errors during container restart.
* Log errors if container restart fails.
* Ensure container is restarted with the new image.
* Remove old image after container restart.
* Publish final 100% progress message after successful container restart.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MichelFR/MqDockerUp/issues/404?shareId=XXXX-XXXX-XXXX-XXXX).
@lodesmets
Copy link
Contributor

Looks great, I hope this get merged

@MichelFR MichelFR linked an issue Mar 21, 2025 that may be closed by this pull request
@MichelFR MichelFR linked an issue Mar 21, 2025 that may be closed by this pull request
@nanderson97651
Copy link
Contributor

Any indication if this will be merged? Multi-host would really improve the functionality of the program.

@MichelFR
Copy link
Owner

MichelFR commented Jun 4, 2025

Any indication if this will be merged? Multi-host would really improve the functionality of the program.

I'm gonna do some tests on this soon.
By merging this we would break currently running instances, since the topic will change.
But probably that's the way to go.

@leonardpitzu
Copy link

Any news on this topic? I kind of hit the same wall…

@fernandodelucca
Copy link

Would this Pull Request also solve the issue with entity names in Home Assistant discovery?

For example:
My container SERVER-MQDOCKERUP
The container status sensor is named: sensor.micrib_mqdockerup_container_status
The Start and Stop buttons are named:
button.server_mqdockerup_start
button.server_mqdockerup_stop

I assume you're using the image to build some entities and the container name to build others.

@SpaceFrags
Copy link

Is there some updates on this? It could fix a lot of problems, maybe also this #572 !

@nanderson97651
Copy link
Contributor

Any hope for this being merged? It would greatly increase the utility.

@nanoBit93
Copy link

nanoBit93 commented Jan 2, 2026

any hope for this getting merged some day?

@MichelFR MichelFR force-pushed the main branch 2 times, most recently from 1b35914 to 3e8f3a6 Compare February 8, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple instance of containers Multiple instances of MqDockerUp conflict with each other

8 participants