apocas / dockerode

Docker + Node = Dockerode (Node.js module for Docker's Remote API)
Apache License 2.0
4.39k stars 465 forks source link

dockerode.getConfig().remove() #739

Closed firecow closed 1 year ago

firecow commented 1 year ago

I'm using dockerode 3.3.5

const currentConfigs = await docker.listConfigs({filters: {label: [`com.docker.stack.namespace=${stackName}`]}});
for (const c of currentConfigs) {
    await docker.getConfig(c.ID).remove();
}
await docker.getConfig(c.ID).remove();

gives

TypeError: Cannot read properties of undefined (reading 'abortSignal')

What am I doing wrong here?

firecow commented 1 year ago

@apocas Is there any way I can help with getting a 4.0.1 release out?