kingmo888
V2EX  ›  问与答

请问在群晖中,如何修改 Container Manager(docker)容器的文件?

  •  
  •   kingmo888 · Mar 1, 2024 · 1155 views
    This topic created in 827 days ago, the information mentioned may be changed or developed.

    谢谢。 在 web 上找不到。 假设容器名称是 project_name 通过 ssh find 它的执行目录,能找到是在 volume1/@docker/xxxxxx/project_name, 但是 @docker 中能搜到 N 个 project_name ,ls 后文件一样,有的是空的。可能跟我重复注册表创建了 N 次及通过项目创建 N 次有关,如何确定真正在用的是哪个,其他的怎么删除?

    1 replies    2024-03-01 16:00:41 +08:00
    saigetsu
        1
    saigetsu  
       Mar 1, 2024
    应该是得先 docker exec -it project_name /bin/bash (或者/bin/sh 之类的)
    然后 find 这样吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2708 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 02:04 · PVG 10:04 · LAX 19:04 · JFK 22:04
    ♥ Do have faith in what you're doing.