Skip to content

Fix container name race and port hold issues for devc multimodule - #539

Open
venmanyarun wants to merge 2 commits into
OpenLiberty:1.xfrom
venmanyarun:devc-container-name-port-race
Open

Fix container name race and port hold issues for devc multimodule#539
venmanyarun wants to merge 2 commits into
OpenLiberty:1.xfrom
venmanyarun:devc-container-name-port-race

Conversation

@venmanyarun

@venmanyarun venmanyarun commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #536

Tested race condition by running 2 maven containers parallel with projects moduleA and moduleB

Using 3.12.3 version of LMP, we are getting the error for moduleB

moduleB error:
[ERROR] Error: creating container storage: the container name "liberty-dev" is already in use by 867ba9ce0ec60b0517d5ec39d8ffb126e0e6350c119fe45f77c211b1d8c08aea. You have to remove that container to be able to reuse that name: that name is already in use by an external entity
Screen.Recording.2026-09-02.at.9.45.04.PM.mov

After code changes, no error is coming, container names are appended with project names

Screen.Recording.2026-09-02.at.9.46.34.PM.mov

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.

2 participants