On Tue, May 24, 2016 at 05:31:52PM -0000, Michał Sawicz wrote: > Public bug reported: > > $ lxc launch --help > [...] > lxc launch [remote:]<image> [remote:][<name>] [--ephemeral|-e] [--profile|-p > <profile>...] [--config|-c <key=value>...] > > vs. > > $ lxc copy --help > [...] > lxc copy [remote:]<source container> [remote:]<destination container> > [--ephemeral|e] > > The launch command chooses a random name for the new container, while > copy requires an explicit name. Would be nice if it was optional for > copy, too.
Right now it uses the same name as the source container: smitten:~ lxc list host1: +--------+---------+------+------+------------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +--------+---------+------+------+------------+-----------+ | unpriv | STOPPED | | | PERSISTENT | 0 | +--------+---------+------+------+------------+-----------+ smitten:~/packages/container-utils master lxc copy host1:unpriv host2: smitten:~/packages/container-utils master lxc list host2: +--------+---------+------+------+------------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +--------+---------+------+------+------------+-----------+ | unpriv | STOPPED | | | PERSISTENT | 0 | +--------+---------+------+------+------------+-----------+ So I'm not sure we can do this without breaking the CLI. > ** Affects: lxd (Ubuntu) > Importance: Undecided > Status: New > > -- > You received this bug notification because you are a member of Ubuntu > containers team, which is subscribed to lxd in Ubuntu. > Matching subscriptions: lxd > https://bugs.launchpad.net/bugs/1585308 > > Title: > `lxc copy` requires name > > Status in lxd package in Ubuntu: > New > > Bug description: > $ lxc launch --help > [...] > lxc launch [remote:]<image> [remote:][<name>] [--ephemeral|-e] > [--profile|-p <profile>...] [--config|-c <key=value>...] > > vs. > > $ lxc copy --help > [...] > lxc copy [remote:]<source container> [remote:]<destination container> > [--ephemeral|e] > > The launch command chooses a random name for the new container, while > copy requires an explicit name. Would be nice if it was optional for > copy, too. > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1585308/+subscriptions -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1585308 Title: `lxc copy` requires name To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1585308/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
