Jhon Honce
7a12e01556
V2 Move varlink home
...
* move cmd/podman/varlink/* to pkg/varlink to support podmanV2 refactor
* update Makefile
* reformatted all impacted code
Signed-off-by: Jhon Honce <jhonce@redhat.com >
2020-03-30 08:18:35 -07:00
OpenShift Merge Robot
8193751287
Merge pull request #5639 from vrothberg/v2-pod-top
...
V2 pod top
2020-03-30 13:59:37 +02:00
Brent Baude
a84c006368
podmanv2 enable healthcheck run
...
run healthcheck with podmanv2
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-29 18:48:29 -05:00
Valentin Rothberg
edec8ccf3f
swagger: top: remove "Docker" from the identifiers
...
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2020-03-28 17:32:27 +01:00
Valentin Rothberg
9812804f75
podmanv2: implement pod top
...
Implement `podman pod top` for podmanV2.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2020-03-28 17:32:22 +01:00
Valentin Rothberg
cc129d13c5
v2 api: implement pods top endpoint
...
Note that this commit does not add tests for the pod-top endpoint.
They will be added in a later change.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2020-03-28 16:49:08 +01:00
Brent Baude
3ff1583814
podmanv2 commit
...
add commit of a container to a container-image
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-28 10:11:50 -05:00
OpenShift Merge Robot
3336b100ef
Merge pull request #4698 from rhatdan/containers.conf
...
Add support for containers.conf
2020-03-27 20:55:48 +01:00
OpenShift Merge Robot
1fe2fbb421
Merge pull request #5642 from tylarb/5610_play_kube_network
...
Sanitize port parsing for pods in play kube
2020-03-27 19:42:50 +01:00
Daniel J Walsh
4352d58549
Add support for containers.conf
...
vendor in c/common config pkg for containers.conf
Signed-off-by: Qi Wang qiwan@redhat.com
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2020-03-27 14:36:03 -04:00
OpenShift Merge Robot
2c5c198020
Merge pull request #5632 from jwhonce/wip/images
...
V2 podman image prune
2020-03-27 18:47:51 +01:00
Tyler Ramer
d704144f53
Sanitize port parsing for pods in play kube
...
The logic used in parsing the ports to be utilized in a kubenetes api
defined pod did not fully adhere to the kubenetes spec, nor did it map
well to a podman context. This fix sanitizes the input of container
ports to meet the following rules:
- A defined containerPort with no defined hostPort does nothing in a
podman context, or is informational. This is line with [usage in
Kubernetes.](https://github.com/kubernetes/kubernetes/issues/4332 )
- A defined hostPort with no defined containerPort acts like a
publish [hostPort]:[hostPort]
- A defined containerPort and defined hostPort works like it does in
kubernetes, as in a publish [hostPort]:[containerPort]
Addresses https://github.com/containers/libpod/issues/5610
Signed-off-by: Tyler Ramer <tyaramer@gmail.com >
2020-03-27 13:33:37 -04:00
Brent Baude
e56d529561
podmanv2 pod create using podspecgen
...
using the factory approach similar to container, we now create pods based on a pod spec generator. wired up the podmanv2 pod create command, podcreatewithspec binding, simple binding test, and apiv2 endpoint.
also included some code refactoring as it introduced as easy circular import.
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-27 09:04:10 -05:00
Christian Felder
91dbdff77e
Add support for specifying CNI networks in podman play kube
...
Fixes : #5609
Signed-off-by: Christian Felder <c.felder@fz-juelich.de >
2020-03-27 10:00:01 +01:00
Christian Felder
90d82eb034
Fix typo in pod create
...
Signed-off-by: Christian Felder <c.felder@fz-juelich.de >
2020-03-27 10:00:01 +01:00
Valentin Rothberg
500a2d508b
podmanV2: implement top
...
Implement the `top` command for podmanV2.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2020-03-27 09:14:01 +01:00
Jhon Honce
581dd312af
V2 podman image prune
...
* Fixed header for `podman image ls`
* Implemented prune `all` flag, preserved filter method for backwards
capability
* Updated binding tests
Signed-off-by: Jhon Honce <jhonce@redhat.com >
2020-03-26 18:32:44 -07:00
Brent Baude
2fa78938a9
podmanv2 container inspect
...
add ability to inspect a container
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-26 15:54:26 -05:00
Brent Baude
c5ce210f7d
podmanv2 pod subcommands
...
add pod kill, pause, restart, rm, start, stop, and unpause
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-26 14:14:05 -05:00
OpenShift Merge Robot
913426c70c
Merge pull request #5573 from mheon/add_basic_exec_endpoints
...
Implement APIv2 Exec Create and Inspect Endpoints
2020-03-26 20:10:08 +01:00
OpenShift Merge Robot
14ece7ecaf
Merge pull request #5627 from baude/apiv2createnet
...
apiv2 add default network in specgen
2020-03-26 18:59:47 +01:00
Matthew Heon
e42cbdd1b2
Add bindings for Container Exec Create + Inspect
...
Also adds some basic tests for these two. More tests are needed
but will have to wait for state to be finished.
Signed-off-by: Matthew Heon <matthew.heon@pm.me >
2020-03-26 13:33:33 -04:00
OpenShift Merge Robot
4f38509b6c
Merge pull request #5615 from jwhonce/wip/images
...
V2 podman image rm | podman rmi [IMAGE]
2020-03-26 18:11:38 +01:00
Brent Baude
cac8bcdd7e
apiv2 add default network in specgen
...
when a network is not provided, we should set a default mode based on rootless or rootfull.
Fixes : #5366
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-26 11:58:22 -05:00
Jhon Honce
f38a26bfa0
V2 podman image rm | podman rmi [IMAGE]
...
* Add support for rm and rmi commands
* Support for registry.ExitCode
* Support for N-errors from domain layer
* Add log-level support
* Add syslog support
Signed-off-by: Jhon Honce <jhonce@redhat.com >
2020-03-25 17:54:14 -07:00
Jhon Honce
36a4cc864d
V2 podman image
...
* Exists()
Signed-off-by: Jhon Honce <jhonce@redhat.com >
2020-03-25 17:54:14 -07:00
Brent Baude
ba1d8ad2af
enable linting on v2
...
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-25 14:16:56 -05:00
OpenShift Merge Robot
69b011d3ac
Merge pull request #5604 from jwhonce/wip/images
...
V2 podman images/image list
2020-03-25 01:26:21 +01:00
Jhon Honce
1d7cb7cc48
V2 podman images/image list
...
* Updated entities to support flags/options
* Updated bindings caused by entities changes
* Removed handlers.ImageSummary in favor of entities.ImageSummary
* Introduced StringSet() container object to simply error checking
Signed-off-by: Jhon Honce <jhonce@redhat.com >
2020-03-24 16:06:01 -07:00
Brent Baude
ae614920bf
podmanv2 volumes
...
add volume commands: create, inspect, ls, prune, and rm
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-24 16:03:49 -05:00
Jhon Honce
77a2af8817
Combine GlobalFlags and EngineFlags into EngineOptions
...
* EngineOptions obtained in command via
`opt, err := registry.Options(cmd)`
Signed-off-by: Jhon Honce <jhonce@redhat.com >
2020-03-24 11:03:13 -07:00
OpenShift Merge Robot
c29a4c6904
Merge pull request #5589 from giuseppe/rootlessport-use-unix
...
rootlessport: use x/sys/unix instead of syscall
2020-03-24 18:19:36 +01:00
Jhon Honce
2c698f0140
Complete podmanV2 history command
...
* All format options now implemented
Signed-off-by: Jhon Honce <jhonce@redhat.com >
2020-03-24 07:40:34 -07:00
OpenShift Merge Robot
0334c8d872
Merge pull request #5598 from marusak/doc_commit_endpoint
...
Correctly document libpod commit endpoint
2020-03-24 15:01:42 +01:00
Giuseppe Scrivano
720f0bc562
rootlessport: use x/sys/unix instead of syscall
...
Dup2 is not defined on arm64 in the syscall package.
Closes: https://github.com/containers/libpod/issues/5587
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com >
2020-03-24 13:56:20 +01:00
OpenShift Merge Robot
3dbf2cb5af
Merge pull request #5581 from baude/v2containers
...
podmanv2 add core container commands
2020-03-24 13:12:06 +01:00
Matej Marusak
eb36f54717
Correctly document libpod commit endpoint
...
In #5588 it was forgotten and documentation still points to `/commit`.
Signed-off-by: Matej Marusak <mmarusak@redhat.com >
2020-03-24 08:37:54 +01:00
OpenShift Merge Robot
02de8d576b
Merge pull request #5560 from QiWang19/remote_ceds
...
Use creds form PullImage remote
2020-03-23 21:22:41 +01:00
Matthew Heon
0c40b62c77
Implement APIv2 Exec Create and Inspect Endpoints
...
Start and Resize require further implementation work.
Signed-off-by: Matthew Heon <matthew.heon@pm.me >
2020-03-23 16:20:42 -04:00
Brent Baude
12e78155e1
apiv2 container commit for libpod
...
add an endpoint for a libpod specific commit. add the abilility to define the format. also update documentation accordingly.
Fixes : #5586
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-23 14:14:17 -05:00
OpenShift Merge Robot
48b3143656
Merge pull request #5436 from QiWang19/rm_created_ctr
...
container prune remove state created, configured
2020-03-23 15:45:26 +01:00
OpenShift Merge Robot
72a2011cb1
Merge pull request #5567 from rhatdan/service
...
Add APIV2 service files
2020-03-23 11:42:22 +01:00
OpenShift Merge Robot
98687ad4a6
Merge pull request #5552 from giuseppe/rootlessport-handle-sigpipe
...
rootlessport: handle SIGPIPE
2020-03-22 20:27:58 +01:00
Brent Baude
9536560b4f
podmanv2 add core container commands
...
add core container commands for podmanv2: kill, pause, restart, rm, stop, unpause
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-22 13:24:45 -05:00
OpenShift Merge Robot
89a3e5979b
Merge pull request #5579 from mtrmac/macOS-unit-tests
...
Make macOS unit tests runnable
2020-03-21 14:48:50 +01:00
OpenShift Merge Robot
195a82ffbc
Merge pull request #5577 from baude/v2volumecreate
...
podmanv2 volume create
2020-03-21 14:46:39 +01:00
OpenShift Merge Robot
e1f2851976
Merge pull request #5578 from baude/v2podexists
...
podmanv2 pod exists
2020-03-21 12:25:30 +01:00
OpenShift Merge Robot
77187daf07
Merge pull request #5555 from mheon/pod_specgen
...
Add basic structure of a spec generator for pods
2020-03-21 00:31:03 +01:00
Brent Baude
c3a9ff1174
podmanv2 volume create
...
add volume create
Signed-off-by: Brent Baude <bbaude@redhat.com >
2020-03-20 18:27:08 -05:00
Miloslav Trmač
d48b0b5131
Add stubs for pkg/adapter/terminal_linux.go
...
Signed-off-by: Miloslav Trmač <mitr@redhat.com >
2020-03-21 00:21:59 +01:00