OpenShift Merge Robot
3e5452ceb7
Merge pull request #3066 from mheon/events_libpod_manpage
...
Document events logger options in libpod.conf manpage
2019-05-04 11:15:38 +02:00
OpenShift Merge Robot
4aa90145bf
Merge pull request #2826 from mheon/restart_policy
...
Add restart policy for containers
2019-05-03 23:14:12 +02:00
Matthew Heon
c5e3d5c7a9
Document events logger options in libpod.conf manpage
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 16:17:25 -04:00
Matthew Heon
d3286952e6
Try and fix restart-policy tests
...
Theory: it's SELinux blowing up and preventing us from creating
files as the container. Try and use a fresh dir and :Z to fix.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 14:38:41 -04:00
OpenShift Merge Robot
2658e870d2
Merge pull request #2971 from QiWang19/logoutcheck
...
fix logout message if login only with docker
2019-05-03 20:29:41 +02:00
Qi Wang
a6a3269c4e
fix logout message if login only with docker
...
if checkAuth() success but not logged in with podman, assume it's logged in with docker and retrun the message.
Signed-off-by: Qi Wang <qiwan@redhat.com>
2019-05-03 12:52:19 -04:00
OpenShift Merge Robot
fde0dc2a55
Merge pull request #3064 from rhatdan/sysregistriesv2
...
change from sysregistries to sysregistriesv2
2019-05-03 18:46:35 +02:00
Matthew Heon
ceaaed7810
Fix manpage typos
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 12:21:32 -04:00
Matthew Heon
5c4fefa533
Small code fix
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 11:42:34 -04:00
Matthew Heon
4d348d7839
Fix 'restart' event in journald
...
Ensure that we can decode the restart event with the new journald
events.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:43:14 -04:00
Daniel J Walsh
d1a7378aa0
change from sysregistries to sysregistriesv2
...
We want to start supporting the registries.conf format.
Also start showing blocked registries in podman info
Fix sorting so all registries are listed together in podman info.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-05-03 10:38:51 -04:00
Matthew Heon
d7c367aa61
Address review comments on restart policy
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
e1443fe05d
Add a test for restart policy
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
cafb68e301
Add a restart event, and make one during restart policy
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
56356d7027
Restart policy should not run if a container is running
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
948fb5ee64
Restart policy conflicts with the --rm flag
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
7ba1b609aa
Move to using constants for valid restart policy types
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
357e4c37e9
Add manpage information for restart policy
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
f4db6d5cf6
Add support for retry count with --restart flag
...
The on-failure restart option supports restarting only a given
number of times. To do this, we need one additional field in the
DB to track restart count (which conveniently fills a field in
Inspect we weren't populating), plus some plumbing logic.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
dc42304f38
Sending signals to containers prevents restart policy
...
Noticed this when testing some behavior with Docker.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
0d73ee40b2
Add container restart policy to Libpod & Podman
...
This initial version does not support restart count, but it works
as advertised otherwise.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
Matthew Heon
3fb52f4fbb
Add a StoppedByUser field to the DB
...
This field indicates that a container was explciitly stopped by
an API call, and did not exit naturally. It's used when
implementing restart policy for containers.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-03 10:36:16 -04:00
OpenShift Merge Robot
0eaba2d56a
Merge pull request #3034 from vrothberg/top-fallback
...
top: fallback to execing ps(1)
2019-05-03 15:16:53 +02:00
OpenShift Merge Robot
a7809fabe5
Merge pull request #2905 from QiWang19/globalvar
...
Add variable for global flags to runlabel
2019-05-03 11:30:51 +02:00
OpenShift Merge Robot
4877e6a947
Merge pull request #3061 from baude/parsecleanup
...
clean up shared/parse/parse.go
2019-05-03 11:20:53 +02:00
Valentin Rothberg
0d2d523390
top: fallback to execing ps(1)
...
Fallback to executing ps(1) in case we hit an unknown psgo descriptor.
This ensures backwards compatibility with docker-top, which was purely
ps(1) driven.
Also support comma-separated descriptors as input.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-05-03 11:20:16 +02:00
OpenShift Merge Robot
d9d9c82184
Merge pull request #2849 from cevich/timestamps
...
Cirrus: timestamp all output script output
2019-05-03 02:14:30 +02:00
OpenShift Merge Robot
f3c494eb28
Merge pull request #2959 from mheon/merge_volume_flags
...
Merge volume flags implementation
2019-05-03 01:30:13 +02:00
baude
3b247d0e20
clean up shared/parse/parse.go
...
prune unused functions and add unit tests for a number of the remaining
ones.
Signed-off-by: baude <bbaude@redhat.com>
2019-05-02 16:13:26 -05:00
OpenShift Merge Robot
139eeb3eb3
Merge pull request #3051 from mheon/podman_migrate_fixes
...
Small fixes for #2950
2019-05-02 22:48:12 +02:00
OpenShift Merge Robot
b5e5585ada
Merge pull request #2985 from baude/generatesystemd
...
Generate Systemd
2019-05-02 22:33:09 +02:00
baude
c18ad2bfd9
Generate systemd unit files for containers
...
the podman generate systemd command will generate a systemd unit file
based on the attributes of an existing container and user inputs. the
command outputs the unit file to stdout for the user to copy or
redirect. it is enabled for the remote client as well.
users can set a restart policy as well as define a stop timeout
override for the container.
Signed-off-by: baude <bbaude@redhat.com>
2019-05-02 14:35:53 -05:00
OpenShift Merge Robot
6bcbb88715
Merge pull request #3060 from mheon/update_cstorage
...
Update c/storage to v1.12.6
2019-05-02 21:28:11 +02:00
Matthew Heon
bb564b68e1
Fix podman-in-podman volume test
...
When running inside Podman, we get an extra `nodev` mount option.
It doesn't seem to be a bug, more an artifact of running in a
somewhat locked-down container. So instead of checking explicitly
for a set of mount options, just verify the ones we set are
present.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-02 15:17:03 -04:00
Chris Evich
074a26f7a1
Cirrus: Add pipefail confirmation check
...
Signed-off-by: Chris Evich <cevich@redhat.com>
2019-05-02 15:03:16 -04:00
Chris Evich
3ab67b9c30
Cirrus: timestamp all output script output
...
Also remove direct time-stamping by CI scripts that would compete.
Signed-off-by: Chris Evich <cevich@redhat.com>
2019-05-02 15:03:15 -04:00
OpenShift Merge Robot
ccf28a89bd
Merge pull request #3039 from mheon/podman_init
...
Add podman init command
2019-05-02 20:45:44 +02:00
OpenShift Merge Robot
3cec403268
Merge pull request #3058 from TomSweeneyRedHat/dev/tsweeney/buidah1.8.1
...
Bump Buildah to v1.8.1, ImageBuilder to v1.1.0
2019-05-02 20:23:16 +02:00
OpenShift Merge Robot
f4f06be9f2
Merge pull request #3035 from baude/remoteport
...
podman-remote port
2019-05-02 19:58:19 +02:00
Matthew Heon
ee73123285
Update c/storage to v1.12.6
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-02 13:54:59 -04:00
OpenShift Merge Robot
4ffd02e550
Merge pull request #3033 from karfau/patch-1
...
add arch linux rootless hints to install.md
2019-05-02 19:19:15 +02:00
Matthew Heon
4b33914535
Fix typo in init manpage
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-02 13:13:32 -04:00
Matthew Heon
1e6413e3fd
Add an InvalidState varlink error for Init
...
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-05-02 13:13:32 -04:00
OpenShift Merge Robot
79e1486a35
Merge pull request #3056 from TomSweeneyRedHat/dev/tsweeney/healthy
...
docs: Fix typo "healthcheck" pt2
2019-05-02 19:04:46 +02:00
TomSweeneyRedHat
9e620ba89e
Bump Buildah to v1.8.1, ImageBuilder to v1.1.0
...
As the title suggests.
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-05-02 12:27:50 -04:00
Qi Wang
a477a8ff75
Add variable for global flags to runlabel
...
use $GLOBAL_OPTS to pass global flags to the runlabel command.
Signed-off-by: Qi Wang <qiwan@redhat.com>
2019-05-02 12:14:51 -04:00
TomSweeneyRedHat
237dec441a
docs: Fix typo "healthcheck" pt2
...
Replaces #2988 . Want to get this is for v1.3.
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-05-02 12:04:17 -04:00
OpenShift Merge Robot
bd5d029889
Merge pull request #3047 from jamescassell/http-proxy-fixup
...
http-proxy: improve docs
2019-05-02 17:47:29 +02:00
OpenShift Merge Robot
8a1d7c2fda
Merge pull request #3053 from edsantiago/fix_req_env_var
...
cirrus lib.sh: refactor req_env_var()
2019-05-02 17:01:47 +02:00
OpenShift Merge Robot
6c69fe1044
Merge pull request #2863 from cevich/fix_new_lint
...
Remove two bits of dead code
2019-05-02 16:29:27 +02:00