Code Monkey home page Code Monkey logo

Comments (5)

lisaac avatar lisaac commented on September 14, 2024

可否用 docker logs 看到相关日志?

from luci-app-dockerman.

Darylyexu avatar Darylyexu commented on September 14, 2024

用docker logs是可以的 只是有的容器需要频繁查看日志 手机上ttyd不是很方便 还是这里快

from luci-app-dockerman.

Darylyexu avatar Darylyexu commented on September 14, 2024

不知道会不会是容器指令的问题 隐约记得刚开容器那会能看见 但是因为容器出过问题删了重新开过 但是运行指令是一样的 之后dockerman界面日志就看不见了 如果有需要我可以发一份指令你试试

from luci-app-dockerman.

Darylyexu avatar Darylyexu commented on September 14, 2024

可否用 docker logs 看到相关日志?

我查到原因了,是因为我那几个看不见日志的容器开启了交互和tty:

在Docker中使用-it参数(即交互式和终端)时,Docker会将标准输入(stdin)连接到容器的终端,这样你可以像在本地终端一样与容器进行交互。这也意味着容器的标准输出(stdout)会被重定向到终端,而不会被Docker捕获并显示在Docker日志中。

不知道如何才能解决呢

from luci-app-dockerman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.