search

Home  >  Q&A  >  body text

各位在docker中以root运行程序,还是建立普通用户来跑程序呢?

怎么操作比较好呢?

黄舟黄舟2759 days ago705

reply all(3)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-25 09:05:58

    How can I say this? It just depends on the specific situation.

    reply
    0
  • 漂亮男人

    漂亮男人2017-04-25 09:05:58

    1 The principle of least permissions, it is best not to use root
    2 If there are security holes and privileges are escalated, the container will be useless
    Conclusion
    If you can do it without root, try not to use it

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-25 09:05:58

    If you don’t know how to play Linux, just use root. Security is not very important in the early stages of learning

    reply
    0
  • Cancelreply