ctm / mb2-doc

Mb2, poker software
https://devctm.com
7 stars 2 forks source link

Revert_to_tag fails when a container is already named /mb2 #1373

Closed ctm closed 6 months ago

ctm commented 6 months ago

Fix revert_to_tag to rename whatever container is named /mb2 if there is one.

docker: Error response from daemon: Conflict. The container name "/mb2" is already in use

happens when I try to revert without deleting the existing container. This has always been the case, but I rarely use revert_to_tag and then typically forget about this gotcha.

ctm commented 6 months ago

I'm no longer convinced this has always been the case. The container name is mb2, not /mb2, so I don't see where that complaint is coming from.

I'll fix the issue with localhost.crt (#1369) and if nobody else is on craftpoker.com play around with revert_to_tag and make it work.

ctm commented 6 months ago

Fixed (and tested).