netcat udp connection hang inside UDP conatiner

Dockerfile

FROM ubuntu:latest
RUN apk add --update jq 
ADD  app /root
CMD ["/bin/bash","/root/test.sh"]

docker build -it x/abc
docker run -it x/abc

stats.sh

  • Docker can not connect to exposed ports for Oracle 12c Container
  • How can I add a file from my computer to a Docker container?
  • How to add a file to an image in Dockerfile without using the ADD or COPY directive
  • com.spotify.docker.client.DockerRequestException: Request error: DELETE unix://localhost:80/v1.12/containers/…: 409
  • Why should I use ribbon/hystrix/eureka instead of docker+haproxy for a microservice?
  • “Memory used” metric: Go tool pprof vs docker stats
  • !#/usr/bin/bash
    echo "something"
    echo "value"|nc -u -w0 server 8125
    

    nc -u -w0 server 8125 command works on my local workstation finer and data get sent to server but when test.sh run inside a container then nc command just hang and doesn’t send data to server.

    Any idea what could be causing nc to hang and why it doesn’t timing out?

  • Restarting named container assigns different IP
  • How can I determine if a specific tag is available for an image
  • How to expose docker container's ip and port to outside docker host without port mapping on TinyCore?
  • Jenkins Pipeline push Docker image
  • Run image in docker
  • How to use fluentd log driver on Elastic Beanstalk Multicontainer docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.