Conditionally upgrade container (specific version)

12 views
Skip to first unread message

Gary Malouf

unread,
Jan 12, 2015, 11:45:53 AM1/12/15
to ansible...@googlegroups.com
I'm trying to achieve the following behavior via the Ansible-Docker module

  1. Check if currently deployed container image is of desired version; if so, exit else proceed
  2. Pull updated image
  3. Stop/remove currently deployed container image
  4. Start new container image

I know using 'latest' would give this type of behavior, but we really want to be able to specify the specific version to check for.

Peter Mooshammer

unread,
Jan 13, 2015, 12:27:22 PM1/13/15
to ansible...@googlegroups.com
Yeah - that would be a nice feature :-)

A pull only option in the docker module, that lets you know if you have to restart the service or not. And restarts AFTER the pull is complete.

Peter
Reply all
Reply to author
Forward
0 new messages