shoalyu
V2EX  ›  Docker

dockerfile

  •  
  •   shoalyu · Dec 14, 2016 · 4200 views
    This topic created in 3613 days ago, the information mentioned may be changed or developed.

    本人 docker 初学者,遇到个问题,请教大家。 我本地有个名为 hub.Dockerfile 的文件,现在想 build 成一个 image ,具体是使用什么命令? 我尝试用 sudo docker build -t ...后面具体应该是什么呢?

    3 replies  •  2016-12-15 09:42:34 +08:00
    shoalyu
    shoalyu
    OP
    Dec 14, 2016
    1
    恳请大神们赐教~~~
    Sharuru
    Sharuru
    Dec 14, 2016
    2
    虽然 Docker 变化很快,网上的资源或文档偶尔会发生更新不及时的情况……

    https://docs.docker.com/engine/tutorials/dockerimages/#/building-an-image-from-a-dockerfile
    shoalyu
    shoalyu
    OP
    Dec 15, 2016
    3
    @Sharuru 已经解决,主要原因是本地 file 的命名, OS mac 的命名是 Dockerfile ,再配合全路径,就可以了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2912 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:27 · PVG 19:27 · LAX 03:27 · JFK 06:27
    ♥ Do have faith in what you're doing.