How do you write a list of all running Docker containers to a file file.txt?

Experience Level: Junior
Tags: DockerDocker CLI

Answer

Run the following command:

docker ps > file.txt

Comments

No Comments Yet.
Be the first to tell us what you think.
Docker for beginners
Docker for beginners

Are you learning Docker ? Try our test we designed to help you progress faster.

Test yourself
Kubernetes Certified Application Developer (CKAD) preparation
Kubernetes Certified Application Developer (CKAD) preparation

Are you learning Docker ? Try our test we designed to help you progress faster.

Test yourself