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

docker

Solution

You can use it without doing anything special. If you have a local image called `blah` you can do `FROM blah`. If you do `FROM blah` in your Dockerfile, but don't have a local image called `blah`, then Docker will try to pull it from the registry.

In other words, if a Dockerfile does `FROM ubuntu`, but you have a local image called `ubuntu` different from the official one, your image will override it.

Problem

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 my local (custom) images as my base (`FROM`) image without `pushing` it to the index?

Original source