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:

  • Unable to connect docker nginx with docker ubuntu
  • why does docker-compose up remove other running conainters?
  • Equivalent of docker-compose.yml parameters in Docker Cloud
  • Ipython notebook in Docker container on ubuntu 16
  • Container spawning for interactive tutorial
  • Stop VM with MongoDB docker image without losing data
  • 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.

  • Mule 3.7 insufficient memory for JVM
  • How to enable docker API to access via http
  • Magnolia EE license auto deploy
  • When we execute docker run ubuntu:14.04 ps ax, where does ps ax command runs?
  • Docker-compose and custom packages
  • Docker hub image cache doesn't seem to be working
  • 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.