OpenShift Merge Robot
529824ec1e
Merge pull request #5997 from giuseppe/fix-pod-create
...
v2, podman: fix a bunch of "podman pod *" tests
2020-04-27 15:37:58 +02:00
OpenShift Merge Robot
ef46687dc5
Merge pull request #5976 from QiWang19/manifest-add-os
...
Add --os to manifest add
2020-04-27 15:33:00 +02:00
Giuseppe Scrivano
408d1328e2
spec: propagate --no-hosts to specgen
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-27 12:58:01 +02:00
Valentin Rothberg
7ee0f7e14c
implement pod stats
...
Implement pod stats for the local and remote client. Both code paths end
up in infra/abi to allow for code share.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-04-27 12:00:35 +02:00
Giuseppe Scrivano
edbdbe5b3a
cmd, ps: add .Status as synonym for .State
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-27 11:59:21 +02:00
Giuseppe Scrivano
eab41cac6f
podman: handle --no-healthcheck
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-27 11:31:46 +02:00
Giuseppe Scrivano
350727570b
podman: special case health-cmd none
...
now we have to pass down this information to libpod
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-27 11:21:55 +02:00
Brent Baude
0e82dece77
enable run_restart integration tests
...
also, correct arg processing mistake in start
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-26 10:44:17 -05:00
Brent Baude
942a3ef588
Enable pod ps integration tests
...
Enable integration tests for pod ps.
In addition, fixed bug where output was still using slice go template routines and would fail when no infra container was present. Added integration test to prevent future regressions.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-25 13:13:32 -05:00
OpenShift Merge Robot
2afe579c06
Merge pull request #5971 from giuseppe/fix-userns-tests
...
v2, podman: fix and enable all run_userns_test.go tests
2020-04-24 22:39:26 +02:00
Qi Wang
2f3734b143
Add --os to manifest add
...
Add --os to manifest add for overriding the os field.
Signed-off-by: Qi Wang <qiwan@redhat.com>
2020-04-24 14:57:56 -04:00
Giuseppe Scrivano
88f1994ab9
podman: assume user namespace if there are mappings
...
if some mappings are specified, assume there is a private user
namespace.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-24 15:55:38 +02:00
Giuseppe Scrivano
64d8b4eebb
podman: implement userns=keep-id
...
add missing implementation for userns=keep-id and enable the user
namespaces tests.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-24 15:03:50 +02:00
Giuseppe Scrivano
3eeb03d1f9
podman: fix --log-opt=path=%s
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-24 13:02:07 +02:00
Giuseppe Scrivano
145d74716c
podman: fix --http-proxy
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-24 12:56:24 +02:00
Giuseppe Scrivano
a1f73d0954
podman: fix podman --group-add
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-24 12:56:23 +02:00
Giuseppe Scrivano
2e6a62fc38
podman: fix --cgroups=disabled
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-24 12:56:21 +02:00
Giuseppe Scrivano
a3acc4f977
podman: add support for --rootfs
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-24 12:56:20 +02:00
OpenShift Merge Robot
802763c604
Merge pull request #5933 from giuseppe/fix-namespaces
...
podman, v2: handle namespaces specified on the CLI
2020-04-23 19:32:08 +02:00
OpenShift Merge Robot
e5a3e46746
Merge pull request #5946 from jwhonce/wip/shutdown
...
V2 restore libpod.Shutdown() when exiting podman commands
2020-04-23 18:27:32 +02:00
Giuseppe Scrivano
48530acbd9
podman: handle namespaces specified on the CLI
...
and handle differently the user namespace as it supports additional
options.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-23 18:05:03 +02:00
Giuseppe Scrivano
2fd6a84c09
specgen: do not always set shmsize
...
if it wasn't overriden on the CLI, leave it undefined.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-23 18:05:02 +02:00
OpenShift Merge Robot
397dcc358a
Merge pull request #5843 from QiWang19/manifest_create
...
manifest create,add,inspect
2020-04-23 17:45:38 +02:00
Qi Wang
17783dda68
manifest create,add,inspect
...
Implememts manifest subcommands create, add, inspect.
Signed-off-by: Qi Wang <qiwan@redhat.com>
2020-04-22 20:05:21 -04:00
OpenShift Merge Robot
bf1e5b875f
Merge pull request #5942 from mheon/volume_flags
...
Enable basic volumes support in Podmanv2
2020-04-22 23:27:07 +02:00
Jhon Honce
565f93531e
V2 restore libpod.Shutdown() when exiting podman commands
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-22 14:25:40 -07:00
OpenShift Merge Robot
576fe98bbc
Merge pull request #5930 from jwhonce/issues/5765
...
Instrumentation to answer #5765
2020-04-22 21:29:10 +02:00
Daniel J Walsh
ae1731e03f
Fix podman push and podman pull to check for authfile
...
This fixes pull_test.go push_test.go is still broken because of
lack of registry support.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-22 14:30:40 -04:00
Matthew Heon
b4a4338dfe
Enable basic volumes support in Podmanv2
...
This enables the --volume, --mount, and --tmpfs flags in
Podmanv2. It does not enable init-related flags, image volumes,
and --volumes-from.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-04-22 14:24:12 -04:00
OpenShift Merge Robot
366fc0520b
Merge pull request #5941 from jwhonce/jira/792
...
V2 Restore exists E2E tests
2020-04-22 20:22:44 +02:00
Jhon Honce
d7a27b8e84
Instrumentation to answer #5765
...
* currently wired to localhost:8888 to prevent access from off machine
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-22 11:07:28 -07:00
Jhon Honce
d0caf90940
V2 Restore exists E2E tests
...
* Fix setting exit code in */exists.go
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-22 09:53:05 -07:00
Daniel J Walsh
1be8ded964
Fix podman rm to have correct exit codes
...
If you attempt to remove a running container is it supposed to exit with
2
If you attempt to remove a non existing container is is supposed to exit with
1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-22 11:53:00 -04:00
Daniel J Walsh
94b62dac74
Fix handling of --cidfile on create/run
...
Currently create and run are ignoring the cidfile flag.
Enable stop_test.go to make sure this works.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-22 09:52:33 -04:00
OpenShift Merge Robot
1ad978a3d7
Merge pull request #5919 from rhatdan/v2
...
Lots more fixes for V2 conversion.
2020-04-21 16:53:53 -04:00
OpenShift Merge Robot
ba1b5d4559
Merge pull request #5851 from jwhonce/wip/json
...
Provide a json variable pointing to a configured json API
2020-04-21 16:13:06 -04:00
Daniel J Walsh
bc56236102
Handle hostname flag from client
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-21 16:02:11 -04:00
Daniel J Walsh
592e7867a3
Add support for devices from command line
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-21 16:02:11 -04:00
Daniel J Walsh
9d7b5947b9
Fix handling of CGroupsParent and CGroupsMode
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-21 16:00:45 -04:00
Daniel J Walsh
f7fe424e19
Throw error on IPv6 ip addresses
...
Podman does not currently support IPv6 addresses.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-21 16:00:45 -04:00
Matthew Heon
1cd2b746d0
Modify namespace generation code for specgen
...
Namespaces have now been changed to properly handle all cases.
Spec handling code for namespaces was consolidated in a single
function.
Still missing:
- Image ports
- Pod namespaces likely still broken in Podmanv2
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-04-21 14:38:52 -04:00
OpenShift Merge Robot
2ed4a0e35f
Merge pull request #5917 from vrothberg/v2-login-logout
...
v2: implement log{in,out}
2020-04-21 14:28:09 -04:00
OpenShift Merge Robot
0134999034
Merge pull request #5911 from giuseppe/cgroup-skip-unset
...
podman: do not set empty cgroup limit blocks
2020-04-21 14:20:58 -04:00
OpenShift Merge Robot
b879ccbb73
Merge pull request #5923 from baude/mybad
...
my bad
2020-04-21 14:00:00 -04:00
Brent Baude
860356970b
my bad
...
typos in previous pr are causing panics
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-21 10:46:23 -05:00
Jhon Honce
b21a5b7ff4
Provide a json variable pointing to a configured json API
...
* All commands now using the same instance of json API
* `json` variable created in each package to prevent `encoding/json`
from being re-introduced
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-21 07:56:10 -07:00
Brent Baude
29ec539b3f
podmanv2 cp
...
enable podman to copy files between container and host, local mode only. this is a straight port of v1 code to v2.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-21 09:23:27 -05:00
OpenShift Merge Robot
f4c2eb1d9d
Merge pull request #5908 from baude/v2subs
...
podmanv2 container subcommands
2020-04-21 10:20:56 -04:00
Brent Baude
10efa1d90f
podmanv2 container subcommands
...
add container subcommands with example text that has proper context.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-21 08:39:54 -05:00
Brent Baude
ae5e7e7e78
v2podman port
...
add port command to podman.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-21 08:33:15 -05:00