summaryrefslogtreecommitdiff
path: root/test/compose/slirp4netns_opts/docker-compose.yml
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-04-23 10:52:52 +0200
committerPaul Holzinger <paul.holzinger@web.de>2021-04-23 11:48:50 +0200
commitca4f6ec1dbdfd06f3d403eda70dbb2eff3824888 (patch)
tree654e5a4ff6fa57998ceaebb8186e7f3a79ed3991 /test/compose/slirp4netns_opts/docker-compose.yml
parent8465626e312a582e434851e6e562974cb3e2e1f8 (diff)
downloadpodman-ca4f6ec1dbdfd06f3d403eda70dbb2eff3824888.tar.gz
podman-ca4f6ec1dbdfd06f3d403eda70dbb2eff3824888.tar.bz2
podman-ca4f6ec1dbdfd06f3d403eda70dbb2eff3824888.zip
Parse slirp4netns net options with compat api
Parse the slirp4netns network options when called via compat api. The options must be extracted from the NetworkMode string. Fixes #10110 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'test/compose/slirp4netns_opts/docker-compose.yml')
-rw-r--r--test/compose/slirp4netns_opts/docker-compose.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/compose/slirp4netns_opts/docker-compose.yml b/test/compose/slirp4netns_opts/docker-compose.yml
new file mode 100644
index 000000000..dcdcae04c
--- /dev/null
+++ b/test/compose/slirp4netns_opts/docker-compose.yml
@@ -0,0 +1,5 @@
+services:
+ alpine:
+ image: alpine
+ network_mode: "slirp4netns:allow_host_loopback=true"
+ command: sh -c "echo teststring | nc 10.0.2.2 5001"