boot2podman / machine

Apache License 2.0
120 stars 16 forks source link

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

Open pixystone opened 5 years ago

pixystone commented 5 years ago

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.

afbjorklund commented 5 years ago

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): 
pixystone commented 5 years ago

Yes, I got it.

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

afbjorklund commented 5 years ago

Did something need changing ?

Or is it enough with a big warning

pixystone commented 5 years ago

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