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:

  • Get IP address of host where docker engine is running
  • How to get Mesos Marathon Stdout from App Creation Command?
  • docker registry fail to start up that prompts file not found which file does exist
  • Persist users across containers
  • Docker Swarm and private IP
  • angular app with docker - production & development
  • 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.

  • Is it a docker best practice to use volume for the code?
  • How do you attach and detach from Docker's process?
  • Running multiple services in a Docker container
  • DNS Swarm agent not working on Azure
  • jenkins and docker-build-step-plugin configuration
  • Fork docker repository
  • 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.