V2 Enable rootless

* Enable running podman V2 rootless
* Fixed cobra.PersistentPreRunE usage in all the commands
* Leveraged cobra.PersistentPreRunE/cobra.PersistentPostRunE to manage:
  * rootless
  * trace (--trace)
  * profiling (--cpu-profile)
  * initializing the registry copies of Image/Container engines
* Help and Usage templates autoset for all sub-commands

Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
Jhon Honce
2020-04-15 10:12:30 -07:00
parent 5def211400
commit 1d93d21254
64 changed files with 419 additions and 851 deletions

View File

@ -28,9 +28,9 @@ const (
// Bridge indicates that a CNI network stack
// should be used
Bridge NamespaceMode = "bridge"
// Slirp indicates that a slirp4ns network stack should
// Slirp indicates that a slirp4netns network stack should
// be used
Slirp NamespaceMode = "slirp4ns"
Slirp NamespaceMode = "slirp4netns"
)
// Namespace describes the namespace