美文网首页
docker中build创建好的image成container进

docker中build创建好的image成container进

作者: hemingkung | 来源:发表于2019-05-01 18:02 被阅读0次
    1、sudo yum install gcc
          sudo yum install glibc-static
          gcc -static hello.c -o hello
          ./hello
    书写Dcokerfile文件,
          from scratch
          add hello /
          cmd ["/hello"]
    
    2、当前目录去找Dockerfile
         docker build -t hemingway/hello-world .
    

    相关文章

      网友评论

          本文标题:docker中build创建好的image成container进

          本文链接:https://www.haomeiwen.com/subject/ddswnqtx.html