Forward host udp port to docker container
Use the -p flag and add /udp suffix to the port number.
-p 53160:53160/udp
如果用在 docker-compose file 上面為
ports:
- "9000:9000"
- "12900:12900"
- "12201:12201"
- "12201:12201/udp"
Use the -p flag and add /udp suffix to the port number.
-p 53160:53160/udp
如果用在 docker-compose file 上面為
ports:
- "9000:9000"
- "12900:12900"
- "12201:12201"
- "12201:12201/udp"