From ca4f6ec1dbdfd06f3d403eda70dbb2eff3824888 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Fri, 23 Apr 2021 10:52:52 +0200 Subject: 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 --- test/compose/slirp4netns_opts/setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/compose/slirp4netns_opts/setup.sh (limited to 'test/compose/slirp4netns_opts/setup.sh') diff --git a/test/compose/slirp4netns_opts/setup.sh b/test/compose/slirp4netns_opts/setup.sh new file mode 100644 index 000000000..35bbf7c70 --- /dev/null +++ b/test/compose/slirp4netns_opts/setup.sh @@ -0,0 +1,8 @@ +# -*- bash -*- + +# create tempfile to store nc output +OUTFILE=$(mktemp) +# listen on a port, the container will try to connect to it +nc -l 5001 > $OUTFILE & + +nc_pid=$! -- cgit v1.2.3-54-g00ecf