dockerfiles: recommend using --network="host"

This commit is contained in:
Joakim Frostegård 2022-07-24 12:17:43 +02:00
parent 24b86107ca
commit c4b07b072c
2 changed files with 4 additions and 0 deletions

View file

@ -10,6 +10,8 @@
# Run from repository root directory with: # Run from repository root directory with:
# $ docker build -t aquatic-udp -f docker/aquatic_udp.Dockerfile . # $ docker build -t aquatic-udp -f docker/aquatic_udp.Dockerfile .
# $ docker run -it -p 0.0.0.0:3000:3000/udp --name aquatic-udp aquatic-udp # $ docker run -it -p 0.0.0.0:3000:3000/udp --name aquatic-udp aquatic-udp
#
# Pass --network="host" to run command for much better performance.
FROM rust:latest AS builder FROM rust:latest AS builder

View file

@ -17,6 +17,8 @@
# Run from root directory of aquatic repository with: # Run from root directory of aquatic repository with:
# $ docker build -t aquatic-ws -f docker/aquatic_ws.Dockerfile . # $ docker build -t aquatic-ws -f docker/aquatic_ws.Dockerfile .
# $ docker run -it --ulimit memlock=65536:65536 -p 0.0.0.0:3000:3000 --name aquatic-ws aquatic-ws # $ docker run -it --ulimit memlock=65536:65536 -p 0.0.0.0:3000:3000 --name aquatic-ws aquatic-ws
#
# Pass --network="host" to run command for much better performance.
FROM rust:latest AS builder FROM rust:latest AS builder