I have no reputation to add a comment (@defreitas) by adding it as an answer. You may have characters in your images. Suppose you have a local image (and not a local registry) named centos-base-image with the tag 7.3.1611.
docker version Client: Version: 1.12.6 API version: 1.24 Package version: docker-common-1.12.6-16.el7.centos.x86_64 Go version: go1.7.4 Server: Version: 1.12.6 API version: 1.24 Package version: docker-common-1.12.6-16.el7.centos.x86_64 Go version: go1.7.4 docker images REPOSITORY TAG centos-base-image 7.3.1611
Dockerfile
FROM centos-base-image:7.3.1611 RUN yum -y install epel-release libaio bc flex
Result
Sending build context to Docker daemon 315.9 MB Step 1 : FROM centos-base-image:7.3.1611 ---> c4d84e86782e Step 2 : RUN yum -y install epel-release libaio bc flex ---> Running in 36d8abd0dad9 ...
In the above example, FROM retrieves the local image, you can provide additional instructions for retrieving the image from your custom registry (for example, FROM localhost:5000/my-image:with.tag ). See https://docs.docker.com/engine/reference/commandline/pull/#pull-from-a-different-registry and https://docs.docker.com/registry/#tldr
Finally, if your image will not be allowed when providing the name, try adding a tag to the image when creating it.
https://docs.docker.com/engine/reference/commandline/commit/
This form describes a similar problem.
https://github.com/moby/moby/issues/8975
Omitting a specific tag, the docker will search for an image with "last" tags, so either create an image using the last tag, or change your
Added the above links in the form of code blocks, because I do not have enough messages to post more than two links ...;)
steven87vt Apr 30 '17 at 16:12 2017-04-30 16:12
source share