Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ENH: Podman Pod commands #341
Libpod now has the ability to create and manage pods. We'd like to expose this through the Podman CLI to allow the management of pods. Our proposed command line is described below
Creating and joining pods
My initial feedback:
I'm also having second thoughts on the pod subcommand. I think it would be cool if podman could take the responsibility of determining if it is a pod or container away from the user. What would you think if we did something like:
but also added a --type pod|container for name collision?
And that abstraction would be applied to the rest of the pod commands?
Yes I like that idea. The tough one is run, but that could take a pod command
Would create a new pod with a container attached.
Would we create a name for the pod as test_pod?
podman run --pod UUID -ti fedora sh
Would join the new container to the existing POD
Does urfave/cli support flags with optional arguments? I can see things working like this:
The only potential issue would be not knowing for sure whether you created or joined a pod with