Access logs of a killed docker container

后端 未结 2 967
死守一世寂寞
死守一世寂寞 2021-02-08 09:57

I recently had to clean up my full disk because of space taken by past docker containers. So I assume that I can access logs of killed containers.

For example I have the

2条回答
  •  我在风中等你
    2021-02-08 10:10

    As the question states that the container is killed not destroyed (removed), you can still access logs of not running containers doing docker logs

    You can find out the ID of the not running container with: docker ps -a

    As long as you have the default docker logging driver.

提交回复
热议问题