How can I use a local image as the base image with a dockerfile?

前端 未结 4 1299
春和景丽
春和景丽 2020-12-12 23:22

I\'m working on a dockerfile. I just realised that I\'ve been using FROM with indexed images all along.

So I wonder:

  • How can I use one of
4条回答
  •  遥遥无期
    2020-12-12 23:43

    Verified: it works well in Docker 1.7.0.

    Don't specify --pull=true when running the docker build command

    From this thread on reference locally-built image using FROM at dockerfile:

    If you want use the local image as the base image, pass without the option --pull=true
    --pull=true will always attempt to pull a newer version of the image.

提交回复
热议问题