6987 Commits

Author SHA1 Message Date
7007680bfd Merge pull request #5618 from vrothberg/v2-top
podmanV2: implement top
2020-03-27 13:55:17 +01:00
340312cc1b Merge pull request #5636 from vrothberg/pause3.2
use `pause:3.2` image for infra containers
2020-03-27 12:53:20 +01:00
5cd20b3e34 Merge pull request #5630 from eriksjolund/fix_markdown_typo_in_podman_create_1_md
[CI:DOCS] Fix Markdown typo in podman-create.1.md
2020-03-27 12:50:20 +01:00
2c4ac55c81 use pause:3.2 image for infra containers
The `pause:3.1` has wrong configs for non-amd64 images as they all claim
to be for amd64.  The issue has now been fixed in the latest
`pause:3.2`.

[1] https://github.com/kubernetes/kubernetes/issues/87325

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-27 10:32:04 +01:00
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
f33942166d Fix Markdown typo in podman-create.1.md
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
2020-03-27 08:37:14 +01:00
1710eca4e9 Merge pull request #5629 from baude/v2containerinspect
podmanv2 container inspect
2020-03-26 22:43:38 +01:00
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
6a46a87d08 Merge pull request #5625 from baude/v2pods
podmanv2 pod subcommands
2020-03-26 21:36:36 +01:00
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
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
14ece7ecaf Merge pull request #5627 from baude/apiv2createnet
apiv2 add default network in specgen
2020-03-26 18:59:47 +01:00
e2cab552de Merge pull request #5624 from giuseppe/use-slirp4netns-seccomp
slirp: enable seccomp filter
2020-03-26 18:51:45 +01:00
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
4f38509b6c Merge pull request #5615 from jwhonce/wip/images
V2 podman image rm | podman rmi [IMAGE]
2020-03-26 18:11:38 +01:00
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
f8ccd76858 slirp: enable seccomp filter
add a check for --enable-seccomp support in slirp4netns.  If it is
supported, always enable it.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-26 16:45:33 +01:00
8cccac5497 Merge pull request #5612 from baude/v2enablelint
enable linting on v2
2020-03-26 15:16:17 +01:00
c869b96d77 Merge pull request #5614 from baude/v2containersfix
podmanv2 add pre-run to each commmand
2020-03-26 14:12:18 +01:00
18c15300b2 Merge pull request #5613 from mheon/reorder_exec_resize
Ensure that exec sends resize events
2020-03-26 09:01:26 +01:00
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
36a4cc864d V2 podman image
* Exists()

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-03-25 17:54:14 -07:00
06e2a5dd86 podmanv2 add pre-run to each commmand
each container command needs a prerune because it is not part of the containers subcommand yet

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-25 19:24:24 -05:00
1313f8a450 Ensure that exec sends resize events
We previously tried to send resize events only after the exec
session successfully started, which makes sense (we might drop an
event or two that came in before the exec session started
otherwise). However, the start function blocks, so waiting
actually means we send no resize events at all, which is
obviously worse than losing a few.. Sending resizes before attach
starts seems to work fine in my testing, so let's do that until we
get bug reports that it doesn't work.

Fixes #5584

Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-25 15:33:52 -04:00
ba1d8ad2af enable linting on v2
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-25 14:16:56 -05:00
ff0124aee1 Merge pull request #5534 from containers/dependabot/go_modules/github.com/rootless-containers/rootlesskit-0.9.2
Bump github.com/rootless-containers/rootlesskit from 0.8.0 to 0.9.2
2020-03-25 17:23:48 +01:00
852dd7fbde Merge pull request #5607 from containers/dependabot/go_modules/github.com/containers/storage-1.16.6
Bump github.com/containers/storage from 1.16.5 to 1.16.6
2020-03-25 14:26:05 +01:00
e8e590ed88 Bump github.com/rootless-containers/rootlesskit from 0.8.0 to 0.9.2
Bumps [github.com/rootless-containers/rootlesskit](https://github.com/rootless-containers/rootlesskit) from 0.8.0 to 0.9.2.
- [Release notes](https://github.com/rootless-containers/rootlesskit/releases)
- [Commits](https://github.com/rootless-containers/rootlesskit/compare/v0.8.0...v0.9.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-03-25 14:20:34 +01:00
2a3fe35666 Bump github.com/containers/storage from 1.16.5 to 1.16.6
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.16.5 to 1.16.6.
- [Release notes](https://github.com/containers/storage/releases)
- [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md)
- [Commits](https://github.com/containers/storage/compare/v1.16.5...v1.16.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-03-25 08:30:02 -04:00
69b011d3ac Merge pull request #5604 from jwhonce/wip/images
V2 podman images/image list
2020-03-25 01:26:21 +01:00
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
b4520649af Merge pull request #5593 from baude/v2volumes
podmanv2 volumes
2020-03-24 23:20:25 +01:00
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
0c084d9719 Merge pull request #5592 from jwhonce/wip/globalflags
Combine GlobalFlags and EngineFlags into EngineOptions
2020-03-24 21:48:37 +01:00
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
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
d6f8c3e07d Merge pull request #5596 from jwhonce/wip/history
Complete podmanV2 history command
2020-03-24 18:07:50 +01:00
14050c6941 Merge pull request #5591 from baude/v2exitcode
podmanv2 exit code
2020-03-24 18:03:01 +01:00
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
0334c8d872 Merge pull request #5598 from marusak/doc_commit_endpoint
Correctly document libpod commit endpoint
2020-03-24 15:01:42 +01:00
0275eed83d Merge pull request #5601 from containers/dependabot/go_modules/github.com/sirupsen/logrus-1.5.0
Bump github.com/sirupsen/logrus from 1.4.2 to 1.5.0
2020-03-24 13:58:18 +01:00
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
2d4fa996ef podmanv2 exit code
add ability to set and get exit code.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-24 07:28:55 -05:00
3dbf2cb5af Merge pull request #5581 from baude/v2containers
podmanv2 add core container commands
2020-03-24 13:12:06 +01:00
ee45149d33 Bump github.com/sirupsen/logrus from 1.4.2 to 1.5.0
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.4.2 to 1.5.0.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.4.2...v1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-03-24 05:27:57 -04:00
a2ffd5c230 Merge pull request #5495 from openSUSE/image-sign
Add image signing with GPG tutorial
2020-03-24 08:56:13 +01:00
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
02de8d576b Merge pull request #5560 from QiWang19/remote_ceds
Use creds form PullImage remote
2020-03-23 21:22:41 +01:00
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
3e835a8025 Merge pull request #5588 from baude/apiv2commitfix
apiv2 container commit for libpod
2020-03-23 21:20:07 +01:00