The problem with the FROM instruction when writing the Dockerfile.

  golang, question

We all know how to writeDockerfileWhen there is only oneFROMInstruction that indicates the parent mirror on which it depends.

I pass nownginxMirror image constructs a mirror image of its own, calledmy-nginx

Then, I can passFROM my-nginxBuild a new image and push it overmy-nginx?

It meansDockerfilehit the targetFROM, canFORMSelf?

docker commitUnderstand, add instructions to the original