Docker (under boot2docker) does not search and find local images when creating

I am running Docker on OS X under boot2docker 1.3.1

I created an image, oceania/python :

 $ docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE oceania/python 0.1 800229a896ff 16 hours ago 510.4 MB 

I have another Docker file where I want to use FROM oceania/python

When I try to create this image, I get:

 Sending build context to Docker daemon 31.74 MB Sending build context to Docker daemon Step 0 : FROM oceania/python Pulling repository oceania/python 2014/11/20 17:23:51 Error: image oceania/python not found 

Shouldn't I browse my local images first before going online to try to pull it out?

Am I really obligated to upload it to the repository?

@jpetazzo answers here that what I am doing should work:
stack overflow

I assume the problem may be related to boot2docker

0
docker boot2docker
Nov 20 '14 at 17:45
source share
1 answer

Uhhh, ok ...

It seems I need to include the tag, i.e.

 FROM oceania/python:0.1 

... then it works.

The docs seem to allow the FROM directive without a tag, and they say: "If the tag is not passed to the FROM instruction, the latter counts."

I assume that the main problem is that if your image does not load into the index somewhere, it cannot resolve the "last" tag.

Another thing that is confusing is apparently in the answers of other people and comments on a similar problem, for example, automatic docker assembly launch error: cannot find the image , they get some results that look like this:

 Unable to find image 'foo/bar:baz' locally 

but in my release there is nothing to say that docker even tried to look locally

+1
Nov 20 '14 at 19:58
source share



All Articles