Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listing all containers hangs #13

Open
dionjwa opened this issue Jan 3, 2023 · 0 comments
Open

Listing all containers hangs #13

dionjwa opened this issue Jan 3, 2023 · 0 comments

Comments

@dionjwa
Copy link

dionjwa commented Jan 3, 2023

Problem reproduction

In one terminal:

docker run --rm -ti ubuntu sleep 30

Then run this script:

import Docker from "https://deno.land/x/denocker/index.ts"

const docker = new Docker("/var/run/docker.sock");
const containers = await docker.containers.list({all: false})
console.log('containers', containers);
   deno run -A --unstable dockerode-test.ts

returns:

containers []

However, changing docker.containers.list({all: false}) to docker.containers.list({all: true}) causes the process to hang indefinitely.

Do I have too many not-running containers?

docker ps -a | wc -l

returns 33 so no, not that many.

Environment

OS: macos 12.6
Docker: version 20.10.21, build baeda1f
Deno: 1.29.1 (release, x86_64-apple-darwin)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant