podman-build/test/compose/slirp4netns_opts/setup.sh
2025-10-11 12:30:35 +09:00

9 lines
168 B
Bash

# -*- bash -*-
# create tempfile to store nc output
OUTFILE=$(mktemp)
# listen on a port, the container will try to connect to it
ncat -l 5001 > $OUTFILE &
nc_pid=$!