To be able to give an image a descriptive and useful tag, the directory structure is used to generate the tag.
Rule 1: All top level image names are a root folder in this project, for example php. This translates to a docker hub repository.
Rule 2: All children of a root image become part of the tag until a Dockerfile is located. For example php/7.0/fpm/alpine will become the tag :7.0-fpm-alpine
Combined these rules result in the following image name: vendor/php:7.0-fpm-alpine
To build all images simply run:
docker run -v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/source \
-e DOCKER_VENDOR='deft' \
-it deft/builder
If you want to build a specific tag you can do this:
docker run -v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/source \
-e DOCKER_VENDOR='deft' \
-it deft/builder php:7.0-fpm-alpine
Content type
Image
Digest
Size
118.6 MB
Last updated
over 10 years ago
docker pull deft/builder