Skip to content

OS-Server fails to build AMI because tag called latest for Mongo was not found #342

@padmassun

Description

@padmassun

@rHorsey @anyaelena @phylroy

Problem:

The AMI creation fails because it was not possible to find the tag called latest for both MongoDB and Redis, when the script attempts to push the MongoDB and Redis image (from dockerhub) into the local docker registry (localhost:5000)

When the repository is pulled from the dockerhub, the image for mongo is listed as:

REPOSITORY                 TAG                    IMAGE ID            CREATED             SIZE
...
...
registry                   2.6                    d1fd7d86a825        4 months ago        33.3MB
mongo                      3.4.10                 e905a87e116d        5 months ago        360MB

When calling docker tag mongo localhost:5000/mongo Docker looks for the mongo image with the latest tag which cannot be found.

Solution

This problem can be solved by specifying the tag of the image downloaded from dockerhub which will be tagged as latest when pushing that image into the local docker registry.

docker tag mongo:$MONGO_VERSION localhost:5000/mongo:latest

The file changes needed to complete this are present at #341

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions