Commit Graph

5281 Commits

Author SHA1 Message Date
Jhon Honce 96bcf8cecc Support podman-remote help on windows
* Update scipts to produce darwin and windows output
* Update batch file to re-direct help requests to browser
* Add pandoc filter for markdown to html links

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2019-09-19 14:14:38 -07:00
OpenShift Merge Robot 408f2780a1
Merge pull request #3985 from cevich/verify_no_podman
Cirrus: Prevent resident pollution
2019-09-19 04:00:54 +02:00
OpenShift Merge Robot 6789428265
Merge pull request #4040 from mheon/mac_tutorial_links
Add links to the Mac tutorial in the main tutorial
2019-09-19 03:50:11 +02:00
OpenShift Merge Robot fe48b9e036
Merge pull request #4045 from umohnani8/vendor
Vendor c/storage 1.13.3
2019-09-18 21:27:00 +02:00
OpenShift Merge Robot 8133aa1ee8
Merge pull request #4041 from baude/remoteconfigport
support non-standard ssh port for remote-client
2019-09-18 21:12:04 +02:00
OpenShift Merge Robot 2c51d6f800
Merge pull request #3972 from msekletar/systemd-rootless-docs
Add a note on systemd shortcomings in rootless containers
2019-09-18 16:00:22 +02:00
Michal Sekletar f9ebc8394e Add a note on systemd shortcomings in rootless containers
Document that it is expected for some of the systemd API's to not work
correctly/at all in rootless containers.

Fixes: #3957

Signed-off-by: Michal Sekletar <msekleta@redhat.com>
2019-09-18 14:19:50 +02:00
baude 0d9b952aea support non-standard ssh port for remote-client
when using the remote client, users may need to specify a non-standard
port for ssh connections.  we can do so on the command line and within
the remote-client configuration file.

Fixes: #3987

Signed-off-by: baude <bbaude@redhat.com>
2019-09-17 13:42:02 -05:00
Matthew Heon e3a343e23f Add links to the Mac tutorial in the main tutorial
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-09-17 14:35:24 -04:00
Urvashi Mohnani 518d59182e Vendor c/storage 1.13.3
Pull in fixes to avoid double locking the mounts list when
doing a save or cleanup.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2019-09-17 14:35:24 -04:00
OpenShift Merge Robot 143caa98bf
Merge pull request #4052 from rhatdan/exitcode
Fix exit code failure
2019-09-17 20:28:20 +02:00
Chris Evich 52c4df0f9a
System-test: Temporarily disable 030-run
While investigating issue
https://github.com/containers/libpod/issues/4044 there is no sense
subjecting forward progress elsewhere.  Skip the test with a note
temporarily, until a resolution to 4044 and any other related issues
is found and fix implemented.

Signed-off-by: Chris Evich <cevich@redhat.com>
2019-09-17 12:54:49 -04:00
Daniel J Walsh 34d22a4e5c
Fix exit code failure
Be less precise on the exit code and lot the exit code to the journal when it fails.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-09-17 12:01:02 -04:00
OpenShift Merge Robot 799aa7022b
Merge pull request #4034 from rhatdan/relabel
Add 'relabel' to --mount options
2019-09-17 13:02:23 +02:00
OpenShift Merge Robot 2aa6771e78
Merge pull request #4037 from mheon/bump_1.6.0_rc1
Bump to v1.6.0-RC1
2019-09-17 00:15:17 +02:00
OpenShift Merge Robot 1a1ff98896
Merge pull request #4035 from mheon/unmount_unmounted_is_safe
Unmounting a container that is already unmounted is OK
2019-09-16 23:34:16 +02:00
OpenShift Merge Robot 42e080bcd3
Merge pull request #4043 from haircommander/preserve-fd-fix
exec: fix --preserve-fds
2019-09-16 23:23:59 +02:00
OpenShift Merge Robot 2a4e062c71
Merge pull request #3941 from gabibeyer/fix_unit_test
fix unit test using strings.Contains
2019-09-16 22:24:05 +02:00
OpenShift Merge Robot 0014d6cf6d
Merge pull request #4038 from giuseppe/enable-sandbox-slirp4netns
networking: use --enable-sandbox if available
2019-09-16 22:03:49 +02:00
Peter Hunt 5f97721afc exec: fix --preserve-fds
There were two problems with preserve fds.
libpod didn't open the fds before passing _OCI*PIPE to conmon. This caused libpod to talk on the preserved fds, rather than the pipes, with conmon talking on the pipes. This caused a hang.
Libpod also didn't convert an int to string correctly, so it would further fail.

Fix these and add a unit test to make sure we don't regress in the future

Note: this test will not pass on crun until crun supports --preserve-fds

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2019-09-16 15:27:00 -04:00
OpenShift Merge Robot 1f5514ea55
Merge pull request #4031 from QazerLab/master
Skip spec_test for rootless envs without cgroup v2.
2019-09-16 17:00:36 +02:00
Giuseppe Scrivano 7c3428de26
networking: use --enable-sandbox if available
if slirp4netns supports sandboxing, enable it.

It automatically creates a new mount namespace where slirp4netns will
run and have limited access to the host resources.

It needs slirp4netns 0.4.1.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-09-16 16:42:11 +02:00
Daniel J Walsh 405ef9bc56
Add 'relabel' to --mount options
Currently if a user specifies a --mount option, their is no way to tell SELinux
to relabel the mount point.

This patch addes the relabel=shared and relabel=private options.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-09-16 09:56:43 -04:00
Matthew Heon 3ad8a349c9 Bump Gitvalidation epoch
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-09-16 09:55:50 -04:00
Matthew Heon fa8f2c0ba5 Bump to v1.6.0-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-09-16 09:55:10 -04:00
Matthew Heon ca5ff03e29 Bump to v1.6.0-rc1
Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-09-16 09:54:28 -04:00
Matthew Heon cabe1345f8 Unmounting a container that is already unmounted is OK
We should not be throwing errors because the operation we wanted
to perform is already done. Now, it is definitely strange that a
container is actually unmounted, but shows as mounted in the DB -
if this reoccurs in a way where we can investigate, it's worth
tearing into.

Fixes #4033

Signed-off-by: Matthew Heon <mheon@redhat.com>
2019-09-16 09:22:26 -04:00
Danila Kiver c06661f041 Check for rootless before checking cgroups version in spec_test.
Signed-off-by: Danila Kiver <danila.kiver@mail.ru>
2019-09-15 21:28:13 +03:00
OpenShift Merge Robot a1970e1915
Merge pull request #4026 from rhatdan/copy
Fix default to pause in podman cp
2019-09-14 11:32:31 +02:00
OpenShift Merge Robot 2366fd7ac6
Merge pull request #4030 from mheon/release_notes_1.6.0
Update release notes for v1.6.0
2019-09-14 02:59:44 +02:00
Danila Kiver 8ac57b48e1 Skip spec_test for rootless envs without cgroup v2.
Signed-off-by: Danila Kiver <danila.kiver@mail.ru>
2019-09-14 00:22:16 +03:00
Daniel J Walsh a481a1265a
Fix default to pause in podman cp
We want to default to secure when running containers as root,
in rootless, we need to change the default if the system does not
support cgroup v1.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-09-13 16:43:50 -04:00
Matthew Heon 4c2694fc98 Update release notes for v1.6.0
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2019-09-13 15:31:13 -04:00
OpenShift Merge Robot 0079c24ec1
Merge pull request #4023 from TomSweeneyRedHat/dev/tsweeney/buildah1.11.2_vendor
Vendor Buildah 1.11.2
2019-09-13 21:08:05 +02:00
OpenShift Merge Robot d74cedefbd
Merge pull request #4022 from baude/remotepushgetrt
get runtime for podman-remote push earlier
2019-09-13 18:55:47 +02:00
OpenShift Merge Robot 9b83882114
Merge pull request #4018 from giuseppe/fix-error-message-rootless
rootless: report the correct error
2019-09-13 18:44:52 +02:00
OpenShift Merge Robot e8a44ebd46
Merge pull request #4006 from rhatdan/rootless
Report errors when trying to pause rootless containers
2019-09-13 18:44:45 +02:00
OpenShift Merge Robot 7875e00c66
Merge pull request #3934 from rhatdan/wait
Podman-remote run should wait for exit code
2019-09-13 18:12:25 +02:00
TomSweeneyRedHat 440392d37b Vendor Bulidah 1.11.2
Vendor in Buildah 1.11.2 into libpod/Podman

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-09-13 11:22:14 -04:00
baude 5539a2a228 get runtime for podman-remote push earlier
to prevent client side panics, we should get the runtime earlier in the
process of push.

Fixes: #4013

Signed-off-by: baude <bbaude@redhat.com>
2019-09-13 10:07:19 -05:00
OpenShift Merge Robot 5c09c4d294
Merge pull request #3942 from jwhonce/issue/3829
Stop glob'ing on podman cp
2019-09-13 16:36:21 +02:00
Giuseppe Scrivano 466694b881
rootless: report the correct error
do not shadow the err variable so that the correct error message can
be reported when utils.RunUnderSystemdScope fails.

Closes: https://github.com/containers/libpod/issues/4012

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-09-13 14:59:07 +02:00
Daniel J Walsh 88ebc33840
Report errors when trying to pause rootless containers
If you are running a rootless container on cgroupV1
you can not pause the container.  We need to report the proper error
if this happens.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-09-13 08:29:46 -04:00
Jhon Honce a6836eae52 Do not support wildcards on cp
* symlink processing and wildcarding led to unexpected files
  being copied

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2019-09-12 16:56:38 -07:00
OpenShift Merge Robot b095d8a794
Merge pull request #4010 from haircommander/regsiter-later
exec: Register resize func a bit later
2019-09-13 00:55:10 +02:00
OpenShift Merge Robot b43a36d7a3
Merge pull request #3978 from baude/networkremove
enhance podman network rm
2019-09-12 23:58:50 +02:00
OpenShift Merge Robot 20772182e6
Merge pull request #4009 from baude/execrmsocket
clean up after healthcheck execs
2019-09-12 23:23:08 +02:00
OpenShift Merge Robot 1ddfc11764
Merge pull request #3986 from debarshiray/wip/rishi/test-podman-exec-tty-onlcr
Test that PTYs created by 'podman exec --tty' have the ONLCR flag
2019-09-12 23:08:53 +02:00
gabi beyer 69c58236ae fix unit test to use Expect
The Expect function does not return a result of True or False
depending on the value of the first instance, but instead requires
a comparison using ".To(", so change to use ".To(ContainSubstring("

Signed-off-by: gabi beyer <gabrielle.n.beyer@intel.com>
2019-09-12 21:01:43 +00:00
OpenShift Merge Robot 6ad17623d5
Merge pull request #3998 from cevich/idiot_proof_systemd_unit
Prevent podman varlink socket fight
2019-09-12 22:54:37 +02:00