How to connect to netcat running in docker container?
问题 I'm looking small rest server for sent request and execute scenario. I've found it here: Create a minimum REST Web Server with netcat nc I'm trying to execute this small rest server. Below Dockerfile and bash script. Dockerfile FROM debian ADD ./rest.sh /rest.sh RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive \ && apt-get install -y net-tools netcat curl \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && chmod +x /rest.sh EXPOSE 80 CMD /rest.sh rest.sh #!/bin/bash /bin/rm -f out