> For the complete documentation index, see [llms.txt](https://moekiwisama-1.gitbook.io/minecraft-docker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moekiwisama-1.gitbook.io/minecraft-docker/nginx/docker-logs.md).

# docker logs

输出的内容消失了？不，我们可以用 docker logs 找到它

```bash
docker logs <container-id>
```

docker logs 跟随 container id ，可以让我们找回它的输出

![](/files/-McxtlQEkvWWMjfotv2U)

其中，container id 并不需要写完整，甚至只写一位都可以，例如 39f91b83e6e3 可以写作 docker logs 39f，只要前几位在不同的容器名中没有重复，docker client 就会自己找到它。
