occiware/Docker-Studio

Enable copy / paste containers to other machines, idem for drag and drop

cgourdin opened this issue · 2 comments

Enable copy / paste containers to other machines, idem for drag and drop

From Marc Dutoo :
Copy / pasting would be very useful, for instance copy / pasting mongo containers when creating a mongodb replica set in a single machine for demo purpose, or copy / pasting machines with mongo containers when creating a distributed production-like mongodb replica set.

BEWARE maybe this issue should affect ALL Studios, and a generic solution can be provided.

Ideally, there should be a warning until the copy's name has been changed (and then the Hostname etc. should be recomputed accordingly).

Maybe (outgoing ?) links could also be copied.

And 2. it works for VMs BUT all links originate from the source ather than the copy.

Could it even be done generically for all designers in the designer generator ?

Marc Dutoo : Copy / pasting one VM with several containers having links between them creates the corresponding VM and containers resources, but with the following problems:

  • pasted containers are exactly the same, therefore modifying (or deleting !) copies also modify (or delete) the originals. Emptying the container IDs does not solve it, I guess they are saved somewhere else.
  • links between copied containers are wrongly copied as links between originals and copies.
    Together, this makes it very easy to break a Docker configuration and delete its containers without warning until it's too late.