Files
podman/pkg
Matthew Heon f7c3cfde77 Add small fixes for 'podman run' from diffing inspect
To try and identify differences between Podman v1.9 and master,
I ran a series of `podman run` commands with various flags
through each, then inspecting the resulting containers and diffed
the inspect JSON between each. This identified a number of issues
which are fixed in this PR.

In order of discovery:
- Podman v2 gave short names for images, where Podman v1 gave the
  fully-qualified name. Simple enough fix (get image tags and use
  the first one if they're available)
- The --restart flag was not being parsed correctly when a number
  of retries was specified. Parsing has been corrected.
- The -m flag was not setting the swap limit (simple fix to set
  swap in that case if it's not explicitly set by the user)
- The --cpus flag was completely nonfunctional (wired in its
  logic)

Tests have been added for all of these to catch future
regressions.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-05-05 20:21:01 -04:00
..
2020-05-04 16:01:45 +02:00
2019-07-23 15:43:40 -04:00
2020-03-05 20:03:44 +01:00
2018-03-27 21:55:33 +00:00
2020-03-05 20:03:44 +01:00
2019-12-12 19:53:46 -03:00
2020-03-09 09:03:51 +01:00
2020-01-13 14:27:02 +01:00
2020-01-14 09:54:48 +01:00
2019-11-13 08:15:00 +11:00
2020-05-01 15:00:33 -04:00
2020-03-30 08:18:35 -07:00
2020-05-05 08:46:51 -05:00