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:

  • Tips on getting docker to work without having to run `sudo docker -d` on Ubuntu 15.04
  • Dockerize ASP Classic on IIS
  • How to install python2.6 in alpine container?
  • docker with shared folder d drive
  • Small change in large file in Docker container produces huge layer
  • docker error: /var/run/docker.sock: no such file or directory
  • 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.

  • docker compose mount host directory on osx with xhyve
  • How does it possible that Ubuntu image has only ~100MB?
  • How to install “ifconfig” command in my ubuntu docker image?
  • Running meteor app with Docker
  • Webpack Incomplete Chunk Encoding in Chrome
  • Docker-Compose Restart Policy
  • 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.