I hosted my web service which uses dockerode and node-pty. When users connect using socket servers, a container is created based on a pre-defined image and alongside the node-pty is initialised using the containerId.
The problem is the container cannot be created and it gives me the docker.sock error.
Error creating container or PTY process: Error: connect ENOENT /var/run/docker.sock
at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1610:16) {
errno: -2,
code: 'ENOENT',
syscall: 'connect',
address: '/var/run/docker.sock'
}
PTY process not initialized. Cannot process commands.
Here’s my
-
Source code: https://github.com/Muhammad-Owais-Warsi/Web-Terminal
-
Docker Image:https://github.com/Muhammad-Owais-Warsi/Web-Terminal/blob/master/backend/dockerfile
So how this issue can be resolved ? How to build this image on render ?
Thanks:)