Docker Community Forums

Share and learn in the Docker community.

How do I tail the logs of 3 docker containers not all containers?


(Vgupta) #1

I can tail the logs of a single docker container by doing:

docker logs -f container1

How can I tail the logs of multiple containers on the same screen?

docker logs container1 container2

doesn’t work. It gives an error:

“docker logs” requires exactly 1 argument(s).

Thank you.