Docker Community Forums

Share and learn in the Docker community.

A simple client server app


(Christophepichaud21) #1

Hello,
I have a simple server/client written in C++ using CPP REST SDK and I would like to run the server in Docker. The server just open a port (arg from the cmd line). When the server try to create the socket/port, the server fails in Docker.
In standard Windows mode, it works.
I have put the EXPOSE 7001 (its default port) on the docker file. No way.
I have tried the command:
docker container run -p 7001:7001 --interactive --tty mydocker/myserver
I launch the server app, it fails…

nothing works. I am dissapointed…

Any idea ?


(Christophepichaud21) #2

On the image, I have copied all the necessary dlls (vcruntime, vc c redist, cpp rest dll, etc).


(Christophepichaud21) #3

I found… it was all about the Windows Defender Firewall…