How to access docker logs of another container -


suppose have 2 docker containers, , b. there way access "docker logs" output of container b within container a?

yes, can mount docker socket container (like so: -v /var/run/docker.sock:/var/run/docker.sock) , access docker logs output through that. you'll either need docker cli binary installed in container b, or use client library of choice interact socket.


Popular posts from this blog