'Client From Socket Server Running Docker Container
I have a simple Typescript socket server where a client can connect to a server using Socket.IO . I would like the client to have the ability to join the server and run a docker container and display the output from that container on the server, back to the client. Here would be an example below....
The client connects to the server, and they transfer their file to the server. Then, in order to run the docker container, they would type this below and the server would see it is from the socket and run it.
COMAND
docker run -v $(pwd):/tmp analyzer/strong corpus /tmp/file.txt
After the container is done running, the server would echo back the results to that specific socket and the client would see it.
I am not sure as to where I could start from this. If I were to guess, I would have to make the docker container be its own separate server that sockets would connect to if I were to guess. I'm guessing it would come down to me changing up the .yaml file for that support to be added.
Any help would be appreciated. Thank you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
