async listContainers usage? #702
Unanswered
mvandenabeele
asked this question in
Q&A
Replies: 1 comment
-
Hey, const allContainerInfos = await docker.listContainers({all: true}); // With the flag --all / -a
const containerInfos = await docker.listContainers();
for (let containerInfo of containerInfos) {
// Do something with containerInfo
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
My question might actually be a misunderstanding of the library. This is all very new to me. This is the code I'm running:
The output I'm expecting is:
What I'm getting is:
Adding an 'await' before listContainers didn't help. What did I do wrong?
Beta Was this translation helpful? Give feedback.
All reactions