Daniel J Walsh
b35a0d0cd2
Fix podman inspect to accept -l and -s fields
...
Podman inspect has a breaking change in that it dropped
--latest and --size options.
This PR adds these back. Lots of tests rely on
podman inspect -l.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-20 15:52:46 -04:00
Daniel J Walsh
eb101936e6
Handle Linux Capabilities correctly
...
If user sets capabilities list we need handle minimal capabilities.
Also handle seccomp-policy being passed in.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-20 15:50:46 -04:00
OpenShift Merge Robot
5928e8fe80
Merge pull request #5896 from giuseppe/fix-cgroup-set
...
common: setting cgroup resources correctly
2020-04-20 15:50:02 -04:00
OpenShift Merge Robot
80355b168c
Merge pull request #5897 from jwhonce/wip/diff
...
V2 Fix --latest for podman diff commands
2020-04-20 15:23:21 -04:00
OpenShift Merge Robot
06152434e6
Merge pull request #5879 from rhatdan/pull
...
Pull images when doing podman create
2020-04-20 13:18:59 -04:00
Jhon Honce
3eac39aaa0
V2 Fix --latest for podman diff commands
...
* --latest now forces container diff
* diff options now passed into domain layer
* updated help/usage messages
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-20 09:27:54 -07:00
Giuseppe Scrivano
4e09c5ebb4
common: setting cgroup resources correctly
...
fix some cgroups related integration tests.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-20 17:26:53 +02:00
OpenShift Merge Robot
e5e625b2a6
Merge pull request #5872 from jwhonce/wip/options
...
V2 Fix support for tcp://[::]<port> connections
2020-04-20 10:42:00 -04:00
Daniel J Walsh
28c336e996
Pull images when doing podman create
...
Currently podman create does not pull images if they don't
exist. It should follow the pull policy specified by the
user.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-20 06:13:43 -04:00
OpenShift Merge Robot
e4e42b28df
Merge pull request #5733 from sujil02/v2-pod-prune
...
Add pod prune for api v2
2020-04-18 06:02:51 -04:00
OpenShift Merge Robot
3b461ed6eb
Merge pull request #5871 from baude/v2t3
...
enable integration testing
2020-04-18 05:58:21 -04:00
Brent Baude
c2a1138aec
enable integration testing
...
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-17 18:57:40 -05:00
Jhon Honce
4e0326241b
V2 Fix support for tcp://[::]<port> connections
...
* Fix support for socket activation, on remote and service
$ systemd-socket-activate -l 8083 --fdname=podman bin/podman system service --log-level=debug --time=30
$ bin/podman-remote --remote=tcp://[::]:8083 image ls
Or, use the podman.{socket,service} unit files
$ bin/podman-remote --remote=unix:///run/podman/podman.sock image ls
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-17 16:39:59 -07:00
Sujil02
37f3b191d5
Add pod prune for api v2.
...
Add the ability to prune pods for api v2,
Includes the addition of force flag, for client side prompt.
Update test suite to support this use case.
Signed-off-by: Sujil02 <sushah@redhat.com>
2020-04-17 17:30:58 -04:00
Daniel J Walsh
6c421b076f
We were not handling the user option on create
...
With this patch we can get run_passwd_test.go to pass
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-17 14:52:51 -04:00
OpenShift Merge Robot
ba289dcd79
Merge pull request #5868 from baude/v2t2
...
Fixes for system tests
2020-04-17 14:43:21 -04:00
OpenShift Merge Robot
a5884c07df
Merge pull request #5819 from vrothberg/v2-build
...
podmanV2: implement build
2020-04-17 14:30:49 -04:00
Brent Baude
44a8cf8676
Fixes for system tests
...
Various fixes to protect against regressions in system tests
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-17 13:22:06 -05:00
Brent Baude
b6a264464f
Enable some testing
...
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-17 10:09:32 -05:00
Valentin Rothberg
60624f948b
podmanV2: implement build
...
Implement `podman build` for the local client. The remote client will
require some rather large work in the backend and a new build endpoint
for the libpod rest API.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-04-17 10:26:50 +02:00
Jhon Honce
554c663b5a
Fix bug where two configurations had been created
...
* registry.PodmanConfig() new returns a pointer to the source of truth
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-16 16:49:59 -07:00
Brent Baude
241326a9a8
Podman V2 birth
...
remote podman v1 and replace with podman v2.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-16 15:53:58 -05:00
Jhon Honce
1d93d21254
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>
2020-04-16 11:08:08 -07:00
Brent Baude
ba430bfe5e
podman v2 remove bloat v2
...
rid ourseleves of libpod references in v2 client
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-16 12:04:46 -05:00
OpenShift Merge Robot
c7d17613ec
Merge pull request #5827 from baude/v2bloat
...
v2 bloat pruning phase 2
2020-04-15 15:00:13 -07:00
OpenShift Merge Robot
0f7162d791
Merge pull request #5817 from rhatdan/selinux1
...
Fix up SELinux labeling
2020-04-15 14:28:53 -07:00
Brent Baude
30d2964ff8
v2 bloat pruning phase 2
...
this is second phase of removing unneeded bloat in the remote client. this is important to be able to reduce the client size as well as possible native compilation for windows/mac.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-15 16:09:27 -05:00
OpenShift Merge Robot
6e9622aa98
Merge pull request #5775 from sujil02/v2-container-prune
...
Ability to prune container in api V2
2020-04-15 13:42:36 -07:00
Daniel J Walsh
ac94a96a74
Fix up SELinux labeling
...
SELinux label options processing fixes, should allow system tests to pass.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-15 16:30:03 -04:00
Sujil02
ec4060aef6
Ability to prune container in api V2
...
Adds ability to prune containers for v2.
Adds client side prompt with force flag and filters options to prune.
Signed-off-by: Sujil02 <sushah@redhat.com>
2020-04-15 11:17:33 -04:00
Brent Baude
165aef7766
podmanv2 events
...
add the ability to monitor events
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-15 09:38:04 -05:00
OpenShift Merge Robot
a756161e80
Merge pull request #5813 from baude/v2edtests2
...
More system test fixes on regressions
2020-04-15 15:13:18 +02:00
Valentin Rothberg
123158e83b
podmanV2: fix nil deref
...
Fix a typo when looking up a flag causing a nil deref and all commands
to fail.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-04-15 11:57:35 +02:00
Brent Baude
60dde457f6
More system test fixes on regressions
...
Fix more regressions between v1 and v2
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-14 19:47:49 -05:00
Jhon Honce
d517276426
Add support for the global flags and config files
...
Note: This PR doesn't provide full rootless support that will be
addressed in a future PR
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-14 14:48:37 -07:00
OpenShift Merge Robot
a6caae0b5a
Merge pull request #5808 from baude/v2psformat2
...
v2podman ps revert structure changes
2020-04-14 18:01:18 +02:00
OpenShift Merge Robot
246ee93201
Merge pull request #5801 from baude/v2mount
...
podmanv2 mount and umount
2020-04-14 17:14:12 +02:00
Brent Baude
830f3a4462
v2podman ps revert structure changes
...
reverting name changes to the listcontainer structure because it negatively impacted the direct consumption of the restful API. instead we now use a local structure in the CLI to modify the output as needed.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-14 09:40:43 -05:00
OpenShift Merge Robot
e2a137327c
Merge pull request #5804 from rhatdan/seccomp
...
Need to set security options even if user does not specify options
2020-04-14 16:09:43 +02:00
Brent Baude
d625aef0c5
podmanv2 mount and umount
...
add the ability to mount and unmount containers for the local client only
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-14 08:32:14 -05:00
OpenShift Merge Robot
85c352d8bc
Merge pull request #5709 from vrothberg/v2-search
...
podmanV2: implement search
2020-04-14 14:51:39 +02:00
Brent Baude
d8d1aa49d2
v2podman add container init
...
add the ability to init a container both local and remote
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-13 19:51:20 -05:00
Daniel J Walsh
8fea3d0ab5
Need to set security options even if user does not specify options
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-13 17:09:22 -04:00
OpenShift Merge Robot
5cf64aee11
Merge pull request #5762 from baude/v2versionformat
...
podmanv2 version format variable name change
2020-04-13 22:44:17 +02:00
OpenShift Merge Robot
0b067b67e6
Merge pull request #5800 from baude/v2edtests
...
Fixes for load and other system tests
2020-04-13 21:57:39 +02:00
Brent Baude
11fa4b6eba
podmanv2 version format variable name change
...
change the name of the variable for version to avoid collision with other commands.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-13 14:23:41 -05:00
OpenShift Merge Robot
d7695dd957
Merge pull request #5777 from jwhonce/issues/5599
...
Refactor service idle support
2020-04-13 20:28:42 +02:00
Brent Baude
90ead05903
Fixes for load and other system tests
...
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-13 13:08:04 -05:00
Jhon Honce
f8892e7c6b
Refactor service idle support
...
* Move connection tracking into APIServer using ConnState()
* Remove Connection counters from CLI code
* Update events handler to support client not closing connection
* Improve logging messages
Fixes #5599
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-13 08:11:36 -07:00
Brent Baude
6f650a5129
podmanv2 history and image remove templates
...
remove the use of template functions images and history to allow for straight-forward user experience. instead of templates we use structs and struct methods.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-13 09:15:24 -05:00