machine icon indicating copy to clipboard operation
machine copied to clipboard

`podman-machine rm default` removed docker-machine named 'default'

Open pixystone opened this issue 6 years ago • 4 comments

DO NOT USE same machine name created by docker-machine

I have a boot2docker machine using docker-machine create default created before.

then I use podman-machine create default.

After podman-machine rm default, it would delete docker-machine named default instead without any warnings or check.

pixystone avatar Aug 14 '19 09:08 pixystone

There is no namespacing of VMs, so everything will be shared in e.g. VirtualBox.

The current workaround was to not use the name "default", but call it "box" instead.

You should have gotten a question though, before it removed the (docker) machine ?

$ podman-machine rm default
About to remove default
WARNING: This action will delete both local reference and remote instance.
Are you sure? (y/n): 

afbjorklund avatar Aug 14 '19 15:08 afbjorklund

Yes, I got it.

There was two VMs named default before. So I made this mistake. It removed the first one it met.

pixystone avatar Aug 15 '19 03:08 pixystone

Did something need changing ?

Or is it enough with a big warning

afbjorklund avatar Aug 15 '19 05:08 afbjorklund

Warning e.g. This action will delete both local reference and remote instance, including your docker-machine as well !!

pixystone avatar Sep 21 '19 17:09 pixystone