podman/test/compose/slirp4netns_opts/setup.sh

9 lines
166 B
Bash

# -*- 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=$!