Commit Graph

6247 Commits

Author SHA1 Message Date
Brent Baude
31a1f44fe6 honor pull policy in play kube
When a container specification has a pull policy, we should honor it when recreating the pods/containers from yaml.  furthermore, ini kube, if a tag is :latest, then the always pull policy is automatically instituted.

Fixes: #4880

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-28 13:36:10 -06:00
OpenShift Merge Robot
d07c263106 Merge pull request #4999 from rpjday/docs/network_rst
docs: fix incomplete heading underlining in network.rst
2020-01-28 05:08:37 -08:00
OpenShift Merge Robot
b94f313fe6 Merge pull request #4996 from baude/rootlessnetns
[CI:DOCS]rootless exec cannot join root namespace
2020-01-28 04:54:50 -08:00
OpenShift Merge Robot
3b574dde6c Merge pull request #4995 from rpjday/docs/podman_stop
docs: add missing hyphen for '-t' option, command '$' prompts
2020-01-28 04:44:15 -08:00
Robert P. J. Day
2460bacbf9 docs: fix incomplete heading underlining in network.rst
Lack of proper underlining generates processing diagnostic.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-28 06:44:07 -05:00
OpenShift Merge Robot
9d30e9f2b6 Merge pull request #4974 from rhatdan/man
Cleanup man pages exit code descriptions
2020-01-28 03:28:18 -08:00
Robert P. J. Day
c38e22de23 docs: add missing hyphen for '-t' option, command '$' prompts
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-28 05:31:52 -05:00
OpenShift Merge Robot
326cdf944d Merge pull request #4986 from baude/showhconimage
inspect image healthchecks
2020-01-27 14:21:59 -08:00
OpenShift Merge Robot
33d41a35e5 Merge pull request #4992 from rhatdan/docker
Add link from docker.sock to podman.sock
2020-01-27 14:09:49 -08:00
OpenShift Merge Robot
05ad507631 Merge pull request #4991 from baude/addcopr
[CI:DOCS]Add copr link to fedora install page
2020-01-27 14:09:42 -08:00
Brent Baude
9de18a1704 [CI:DOCS]rootless exec cannot join root namespace
add a quick note in the rootless.md about usage of --net=host as rootless and subsequent podman execs.

Fixes: #4473

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-27 15:43:53 -06:00
OpenShift Merge Robot
094baa5366 Merge pull request #4894 from edsantiago/test_apiv2
Tests for API v2
2020-01-27 07:14:16 -08:00
Daniel J Walsh
4ab6a10d0c Add link from docker.sock to podman.sock
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-27 09:52:25 -05:00
Brent Baude
6181faa90d inspect image healthchecks
when a docker image has a defined healthcheck, it should be displayed with inspect.  this is only valid for docker images as oci images are not aware of healthchecks.

Fixes: #4799
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-27 08:36:25 -06:00
Brent Baude
25a01524e3 [CI:DOCS]Add copr link to fedora install page
for non-rawhide fedora distributions, you can use the copr repo to track upstream

Fixes: #4956

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-27 08:26:01 -06:00
OpenShift Merge Robot
7794fafdad Merge pull request #4982 from rpjday/rpjday/exists_sudo
docs: remove reference to "sudo" in "podman exists" examples
2020-01-27 04:49:58 -08:00
OpenShift Merge Robot
408dc6f319 Merge pull request #4983 from rpjday/rpjday/history_bools
docs: add boolean values and defaults to "man podman-history" options
2020-01-27 04:32:50 -08:00
OpenShift Merge Robot
2d9d5e7606 Merge pull request #4985 from baude/pushhidden
Hidden remote flags can be nil
2020-01-27 04:22:21 -08:00
Brent Baude
7f69669a3a Hidden remote flags can be nil
The pull command has several options that are hidden for the remote client.  In that case, when checking to see if the flag has been flipped with .Changed, we get a nil pointer error.  Using IsSet is tolerant of this.

Fixes: #4706

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-26 14:53:22 -06:00
Robert P. J. Day
4aeb25d5f2 docs: add boolean values and defaults to "man podman-history" options
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-26 14:13:54 -05:00
OpenShift Merge Robot
c28af15932 Merge pull request #4979 from rpjday/rpjday/system_prune
docs: fix system-prune markdown; reword for clarity
2020-01-26 10:18:27 -08:00
OpenShift Merge Robot
42f48245ce Merge pull request #4977 from rpjday/rpjday/man_pages
docs: clean up "man podman-rm", "man podman-rmi"
2020-01-26 10:02:20 -08:00
Robert P. J. Day
bb66d78b2f docs: remove reference to "sudo" in "podman exists" examples
In both of "podman {container,image} exists" man pages, there
are superfluous uses of "sudo" in examples -- get rid of them.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-26 12:43:26 -05:00
OpenShift Merge Robot
40d36b1cf1 Merge pull request #4975 from agners/add-openembedded-to-install.md
install.md: mention availability of OpenEmbedded recipes
2020-01-26 09:28:12 -08:00
Robert P. J. Day
5871446e8d docs: fix system-prune markdown; reword for clarity
In addition to tweaking markdown, reword the explanation of
the "--volumes" option for clarity.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-26 07:46:21 -05:00
Robert P. J. Day
3ff2ea329b docs: clean up "man podman-rm", "man podman-rmi"
Standardize markdown for options and commands, and add leading
dollar signs to emphasize commands being run.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-26 07:16:16 -05:00
OpenShift Merge Robot
d7e99b04b9 Merge pull request #4933 from rpjday/docs/markdown/inspect
markdown: reword 'podman-inspect' to properly explain '--size'
2020-01-26 03:00:31 -08:00
Stefan Agner
5b71056cf6 install.md: mention availability of OpenEmbedded recipes
OpenEmbedded is a build framework to build an embedded Linux
distribution. Podman recipes are available in the meta-virtualization
layer.

Signed-off-by: Stefan Agner <stefan@agner.ch>
2020-01-26 11:15:21 +01:00
Daniel J Walsh
2557cdb4b2 Cleanup man pages exit code descriptions
The conversion of markdown to man pages is causing "_" to cover entire lines.
This PR cleans this up and fixes some of the english.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-26 08:53:52 +01:00
OpenShift Merge Robot
c21445d73d Merge pull request #4926 from TomSweeneyRedHat/dev/tsweeney/fixsystemdf
Fix example format in system df man
2020-01-25 23:35:33 -08:00
OpenShift Merge Robot
d07f611885 Merge pull request #4965 from baude/reviewcorrections3
APIv2 review corrections #3
2020-01-25 23:23:39 -08:00
OpenShift Merge Robot
689da532fa Merge pull request #4941 from containers/dependabot/go_modules/gopkg.in/yaml.v2-2.2.8
build(deps): bump gopkg.in/yaml.v2 from 2.2.7 to 2.2.8
2020-01-25 23:23:32 -08:00
OpenShift Merge Robot
c1e2698f81 Merge pull request #4952 from mheon/inspect_default_shares
Default CPUShares in Inspect are 1024
2020-01-25 23:12:57 -08:00
OpenShift Merge Robot
0800ab4f65 Merge pull request #4968 from vrothberg/fork-camelcase
fork fatih/camelcase
2020-01-25 22:05:02 -08:00
Brent Baude
5da70b04dd APIv2 review corrections #3
The third pass of corrections for the APIv2.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-25 15:09:09 -06:00
Valentin Rothberg
e3ad92f85d camelcase: fix lint reports
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-25 09:48:37 +01:00
Valentin Rothberg
ac8e6c9910 fork fatih/camelcase
faith/camelcase has been archived and is no longer maintained.
The package is sufficiently small and self-contained enough to
maintain it in libpod.

Fixes: #4783
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-25 09:42:48 +01:00
OpenShift Merge Robot
975854ad5c Merge pull request #4966 from jwhonce/wip/filters
[CI:DOCS] Refactor time parsing to be more liberal in accepted values
2020-01-24 10:57:30 -08:00
Jhon Honce
9a2e275abd Refactor time parsing to be more liberal in accepted values
* Added helper function to allow parsing from filters

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-01-24 10:11:05 -07:00
OpenShift Merge Robot
81e59a742b Merge pull request #4958 from jwhonce/wip/filters
[CI:DOCS] Add query parameter converters for complex types
2020-01-24 06:56:55 -08:00
Jhon Honce
9634e7eef7 Add query parameter converters for complex types
* Add converter for URL query parameters of type map[string][]string
* Add converter for URL query parameters of type time.Time
* Added function to allocate and configure schema.Decoder for API use
* Updated API handlers to leverage new converters, and correct handler
  code for filter type

An encoding example for a client using filters:

  v := map[string][]string{
      "dangling": {"true"},
  }
  payload, err := jsoniter.MarshalToString(v)
  if err != nil {
    panic(err)
  }
  payload = "?filters=" + url.QueryEscape(payload)

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-01-23 16:32:00 -07:00
OpenShift Merge Robot
5bad873c4c Merge pull request #4953 from baude/reviewcorrections2
Review corrections pass #2
2020-01-23 11:12:36 -08:00
Brent Baude
cf7be58b2c Review corrections pass #2
Add API review comments to correct documentation and endpoints.  Also, add a libpode prune method to reduce code duplication.  Only used right now for the API but when the remote client is wired, we will switch over there too.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-23 11:58:26 -06:00
dependabot-preview[bot]
9d68ba5945 build(deps): bump gopkg.in/yaml.v2 from 2.2.7 to 2.2.8
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.7...v2.2.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-01-23 10:50:43 -05:00
OpenShift Merge Robot
8beeb067aa Merge pull request #4948 from vrothberg/seccomp-label
seccomp policy: expect profile in config label
2020-01-23 07:31:11 -08:00
Matthew Heon
eb229d526c Default CPUShares in Inspect are 1024
This is purely a display change - we weren't initializing the
default value to display for the CPUShares field, which defaults
to 1024.

Fixes #4822

Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-01-23 09:46:11 -05:00
OpenShift Merge Robot
6518421f89 Merge pull request #4939 from containers/dependabot/go_modules/github.com/pkg/errors-0.9.1
build(deps): bump github.com/pkg/errors from 0.9.0 to 0.9.1
2020-01-23 06:41:13 -08:00
OpenShift Merge Robot
2321a49195 Merge pull request #4949 from containers/dependabot/go_modules/github.com/containers/conmon-2.0.10+incompatible
build(deps): bump github.com/containers/conmon from 2.0.9+incompatible to 2.0.10+incompatible
2020-01-23 06:15:24 -08:00
OpenShift Merge Robot
f037f24b67 Merge pull request #4947 from containers/dependabot/go_modules/github.com/containers/storage-1.15.7
build(deps): bump github.com/containers/storage from 1.15.5 to 1.15.7
2020-01-23 06:15:18 -08:00
OpenShift Merge Robot
8098cbbee1 Merge pull request #4946 from containers/dependabot/go_modules/github.com/vishvananda/netlink-1.1.0
build(deps): bump github.com/vishvananda/netlink from 1.0.0 to 1.1.0
2020-01-23 06:15:11 -08:00