polotou
V2EX  ›  Docker

请教一个问题, 可以把 docker 和项目代码与项目所依赖的环境打包成 exe 发布给客户吗

  •  
  •   polotou · Jun 3, 2024 · 1950 views
    This topic created in 736 days ago, the information mentioned may be changed or developed.
    服务器都是 windows server 2016 数据中心版
    
    这是个很老旧的项目
    
    项目依赖 node php mysql redis nginx 或者 apache 等
    
    现在想把 项目与环境信息通过 docker 构建 ,把 docker 注意是整个 docker 也一起打包到 exe 里面 点击安装即可
    
    9 replies    2024-06-14 08:58:32 +08:00
    MMM25O7lf09iR4ic
        1
    MMM25O7lf09iR4ic  
       Jun 3, 2024
    不可以。
    qhd1988
        2
    qhd1988  
       Jun 3, 2024
    在客户服务器上跑个 docker,然后把你们打出来的镜像丢到那个服务器上的 docker 上跑吧
    herich
        3
    herich  
       Jun 3, 2024
    可以。先打包一个虚拟机进去, 然后在虚拟机里运行 docker , 就可以 run 起来了
    XuHuan1025
        4
    XuHuan1025  
       Jun 3, 2024
    把 docker 环境放在虚拟机中拷贝过去
    7lQM1uTy635LOmbu
        5
    7lQM1uTy635LOmbu  
       Jun 3, 2024
    用 vm 交付算了。。
    kero991
        6
    kero991  
       Jun 7, 2024   ❤️ 1
    巧了,最近发现一个项目叫做 dockerc
    就是把 docker 编译成一个二进制文件的。
    我没有试,我觉得体积应该非常逆天。不过感觉很有前途的样子。

    但是,这个是 linux 的,我不知道做出来的是啥,应该肯定不是 exe
    kero991
        7
    kero991  
       Jun 7, 2024
    作者在路线图上写了 win 支持( qemu )
    kero991
        8
    kero991  
       Jun 7, 2024
    https://github.com/NilsIrl/dockerc

    v2ex 能不能编辑帖子啊,老补发好烦呀
    polotou
        9
    polotou  
    OP
       Jun 14, 2024
    @kero991 哈哈哈 研究一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   923 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 21:33 · PVG 05:33 · LAX 14:33 · JFK 17:33
    ♥ Do have faith in what you're doing.