dockerode icon indicating copy to clipboard operation
dockerode copied to clipboard

Timeout not properly working on newer node versions

Open collinkleest opened this issue 3 years ago • 0 comments

It seems like the timeout mechanic is not properly working on newer node versions, I ran into this issue when upgrading from 12.13.0 -> 14.17.4.

here is an example of me running an image with code that runs an infinite loop:

const docker = new Docker({socketPath: "/run/docker.sock", timeout: 5000});

docker.run('c4a385f362a9', [], process.stdout, (err, res) => {
    if (err) {
        console.log(err);
    } else {
        console.log(res);
    }
})

on older nodes, it will console log the buffer stream from the run command after 5 seconds.

on newer nodes, nothing happens and it just waits.

collinkleest avatar Aug 09 '21 23:08 collinkleest