uxc: behave more like a compliant OCI run-time
authorDaniel Golle <daniel@makrotopia.org>
Tue, 28 Jul 2020 08:06:39 +0000 (09:06 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 28 Jul 2020 12:56:49 +0000 (13:56 +0100)
commit9d5fa0ae9962959d5088043fec281e96824ab46a
treedc0dadd7fa704cc8da7211525043b08fe02f9ddd
parent8ff89701c176222840b990364788ee720df70fe7
uxc: behave more like a compliant OCI run-time

Follow CLI syntax as described in OCI run-time spec[1].
In addition, allow 'create' call also without 'path' parameter to
re-create previously created containers, also after reboot.

Usual workflow:
uxc create debian /mnt/sda3/debian
uxc start debian
uxc kill debian 1
uxc create debian
uxc start debian
...

To create a container and have it automatically launched at boot:
uxc create debian /mnt/sda3/debian true

 [1]: https://github.com/opencontainers/runtime-spec/blob/master/runtime.md#operations

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
uxc.c