DockerHub set tag alias in automated build

I’m using Docker Hub’s automated build system to build a docker image. That image comes in two flavors (Debian jessie and wheezy based). I like to have speaking tags for both of those (:jessie and :wheezy) but would also like to have a :latest tag pointing to the :jessie flavor.

For now I simply duplicated the jessie line in the automated build config:

  • How to set bash aliases for docker containers in Dockerfile?
  • Publish app on docker when save it
  • Start only one service in a docker-compose.yml with ansible docker_service module
  • Building a docker image using AWS Developer Tools
  • Docker plugin : java.io.FileNotFoundException: /src/main/docker/Dockerfile gradle-docker fails
  • How does Docker keep the image immutable
  • docker settings

    But this seems to actually build the image twice. What I would need is a way to specify a tag alias, but I am not sure if that’s possible. And if so how to do it.

  • How does a Docker engine replace a hypervisor and guest OS?
  • Docker Compose circular container linking
  • Docker: Development environments [closed]
  • Docker produces 'port already allocated' when IP address is specified in port definition
  • Kibana on Docker cannot connect to Elasticsearch
  • How to run a CMD and open Bash when running a docker container?
  • 2 Solutions collect form web for “DockerHub set tag alias in automated build”

    It’s currently not possible to have more than one docker tag name by build. Duplicating the build is the only solution.

    You can use the tags regexp regexp

    Look at the last tag that gets created.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.