How to know that the container is up and running (Dockerode)?

673 Views Asked by At

I am running docker using dockerode's run command.

    let dockerEvent = docker.run('imageName', [], process.stdout, function(err) {
    if(err) {
        console.log("Error while starting docker", err);
    }
});

I need to do something once the docker container is running. How do I know when the docker container is running using dockerode library?

0

There are 0 best solutions below