Creates a Runner instance.
Options passed to dockerode constructor.
Container image to use instead of the default one.
Used to get back the output of a run.
The returned Buffer can be decoded to a string using output.decode('utf-8')
Checks if container image is pulled.
Returns true
if the container has been started and false
otherwise
Attempts to connect to the Docker daemon.
Returns true
if successful, false
otherwise.
Pulls the container image to the machine running Docker. Returns when completed.
Removes the container image from the machine running Docker.
Sends code to be used for testing. There can only be one code file at the same time.
Content of the code to send.
Extension of the code file, for example: .cpp
.
Supported languages: Extension.
Sends input to the container There can be multiple input files on the docker container
input data to be sent
Path to input file on the container.
Sends multiple inputs to the container There can be multiple input files on the docker container
array of inputs data to be sent
Path to input files on the container, in the same order as inputs
Starts the docker container. Does nothing if already started.
Stops the docker container. Does nothing if not started.
Generated using TypeDoc
Every runner instance manages a single container. There can be only one code file at the same time in each container. There can be multiple runners active simultaneously.