aboutsummaryrefslogtreecommitdiff
path: root/test/compose/slirp4netns_opts/setup.sh
blob: 35bbf7c7036993fe27355e2b466f0ea335a400f0 (plain)
1
2
3
4
5
6
7
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=$!