Skip to content

Update error messaging when a container is already running#2234

Merged
elizabethengelman merged 3 commits into
mainfrom
fix/update-container-error-handling
Oct 6, 2025
Merged

Update error messaging when a container is already running#2234
elizabethengelman merged 3 commits into
mainfrom
fix/update-container-error-handling

Conversation

@elizabethengelman

Copy link
Copy Markdown
Contributor

What

Return a custom error if a user calls stellar container start before docker has finished cleaning up the container.

Why

We previously were just returning the internal bollard error message which isn't super easy to read.

❌ error: ⛔ ️Failed to create container: Docker responded with status code 409: Conflict. The container name "/stellar-local" is already in use by container "269170efd31f922fcdc2ea4c237ecf6b104f33f6f2bd4833d0e6f4d28d2ba279". You have to remove (or rename) that container to be able to reuse that name.

Known limitations

We still may have an issue where doing this results in the bollard error mentioned above, and maybe it should be handled more gracefully than that. But hopefully this PR will at least make it clearer what is going on.

stellar container stop local && stellar container start local

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Oct 2, 2025
@elizabethengelman elizabethengelman merged commit 7dbd2a6 into main Oct 6, 2025
29 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX Oct 6, 2025
@elizabethengelman elizabethengelman deleted the fix/update-container-error-handling branch October 6, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants