libdocker
A nodeJS wrapper for the docker command
API
The API is similar to the docker command itself except in the way it handles json.
docker.COMMAND([arguments, options], cb)
Examples:
dockerdocker
The --format '{{ json . }}' flag will be appended automatically if the command supports it and the output - if it is valid json - will be parsed as json.
Additionally there is an .array
extension of the command which always tries to return an array unless an error occured.
Full example:
const docker = docker