Re: [ansible-project] Upgrading docker containers with ansible

37 views
Skip to first unread message
Message has been deleted

Michael DeHaan

unread,
Sep 25, 2014, 7:55:44 AM9/25/14
to ansible...@googlegroups.com
Hi Brian,

For starters, an you indicate your Ansible and docker-py and Docker versions?

Thanks!

--Michael



On Wed, Sep 24, 2014 at 5:25 PM, Brian Fleming <brian....@cyaninc.com> wrote:
New user here, only been playing a couple hours.

I got this playbook working to install version 1.0 of my fake web app that uses redis.  But what I want to know is, how can I know if there is a new version of my web container and how to upgrade to it?

I thought if I just changed the tag from 1.0 to 2.0 then the 1.0 version would be stopped and the 2.0 would go up. But the 1.0 version is remaining.


- hosts: all 
  sudo: yes
  tasks:
  - name: ensure redis container is running
    docker: image=dockerfile/redis name=redis command=" bash -c 'redis-server  /etc/redis/redis.conf'"

  - name: ensure web container is running
    docker: image=<privaterepo>:5000/web:1.0 ports=5000:5000 links=redis:redis name=cyweb state=restarted


thanks for your time.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3bb813bc-4e91-4fde-9cc2-ba83aa70be7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Michael DeHaan

unread,
Sep 26, 2014, 8:44:26 AM9/26/14
to ansible...@googlegroups.com
"And it says 1.4 at the top."

This is innocuous.

This refers to the version it was added in for the first time, so users on older versions reading the dcumentation do not try to run something that isn't there.



On Thu, Sep 25, 2014 at 1:05 PM, Brian Fleming <brian....@cyaninc.com> wrote:
Docker:
Client version: 1.2.0
Client API version: 1.14
Go version (client): go1.3.1
Git commit (client): fa7b24f
OS/Arch (client): linux/amd64
Server version: 1.2.0
Server API version: 1.14
Go version (server): go1.3.1
Git commit (server): fa7b24f

Ansible:
ansible 1.7.1


Docker-py

Not sure how to get this. I looked for the file:
/usr/share/ansible/cloud/docker

And it says 1.4 at the top.

Thanks!  Am I right in assuming that the above should work?  
Reply all
Reply to author
Forward
0 new messages