爱意满满的作品展示区。
herozem

写了个容器的小 demo

  •  
  •   herozem · Mar 9, 2018 · 4201 views
    This topic created in 3013 days ago, the information mentioned may be changed or developed.

    https://github.com/jiajunhuang/cup

    容器的原理原来 so easy,不过 Docker 这么火,估计是做了大量的包装,让容器技术简易上手吧

    11 replies    2018-03-09 16:44:55 +08:00
    FEDT
        1
    FEDT  
       Mar 9, 2018 via iPhone
    膜拜
    archknight
        2
    archknight  
       Mar 9, 2018
    dalao 真的强
    Icezers
        3
    Icezers  
       Mar 9, 2018 via iPhone
    Mark
    kofj
        4
    kofj  
       Mar 9, 2018
    failed to run command: fork/exec /proc/self/exe: invalid argument
    Linux 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    herozem
        5
    herozem  
    OP
       Mar 9, 2018
    @kofj 你这个内核好像有点老,`/proc/self/exe` 我不记得在哪个版本引入的来着,换个新点的内核
    tangwz
        6
    tangwz  
       Mar 9, 2018
    厉害了。另,还有 shell 实现的 docker: https://github.com/p8952/bocker
    kofj
        7
    kofj  
       Mar 9, 2018
    有 /proc/self/exe,这台机器还有跑 docker
    $ ls -al /proc/self/exe
    lrwxrwxrwx. 1 root root 0 3 月 9 15:07 /proc/self/exe -> /usr/bin/ls
    herozem
        8
    herozem  
    OP
       Mar 9, 2018
    @kofj 可以贴一下你执行命令的历史记录么?另外 uname -a 和 lsb_release -a 也贴一下
    herozem
        9
    herozem  
    OP
       Mar 9, 2018
    @tangwz 哇,这个是真厉害
    kofj
        10
    kofj  
       Mar 9, 2018
    uname -a 贴过了
    $lsb_release -a
    LSB Version: :core-4.1-amd64:core-4.1-noarch
    Distributor ID: CentOS
    Description: CentOS Linux release 7.1.1503 (Core)
    Release: 7.1.1503
    deadEgg
        11
    deadEgg  
       Mar 9, 2018
    cup。。

    让我想起了一个古老的项目: http://www2.cs.tum.edu/projects/cup/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1127 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 23:03 · PVG 07:03 · LAX 16:03 · JFK 19:03
    ♥ Do have faith in what you're doing.