Category : docker-api

I’m trying to use dockerode to access the Docker API. My goal is to get container data for all containers in the multi node swarm. It appears that docker.listContainers( {all: true } ) is scoped to only returns containers running on the calling node, in my case my manager node. https://docs.docker.com/engine/api/v1.37/#operation/ContainerList How do we use ..

Read more

What I’m trying to achive is to correctly bind container stdout and stderr to two previously created streams by using Dockerode, a library to handle everything about Docker with NodeJS that use Docker API under the hood. Here is the code: export class Runner { // Some methods private execRunCommands(commands: string[], runnerInfo: IRunnerInfoExtended): Observable<IRunnerInfoExtended> { ..

Read more