Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull the latest images and restart service #662

Open
magtimmermans opened this issue Jul 9, 2023 · 0 comments
Open

Pull the latest images and restart service #662

magtimmermans opened this issue Jul 9, 2023 · 0 comments
Labels
bug Something isn't working docker-compose-v1 Docker Compose v1

Comments

@magtimmermans
Copy link

SUMMARY

I am trying to get the latest image and restart the service with this new image.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.docker.docker_compose

ANSIBLE VERSION
ansible [core 2.14.6]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True
COLLECTION VERSION
# /usr/lib/python3/dist-packages/ansible_collections
Collection       Version
---------------- -------
community.docker 3.4.7  

# /root/.ansible/collections/ansible_collections
Collection       Version
---------------- -------
community.docker 3.4.8 
CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE
  tasks:
    - name: rebuild service
      community.docker.docker_compose:
        project_src: /volume1/docker
        services:
            - portainer
        pull: true
        build: true
        nocache: true
        recreate: always
      register: output

EXPECTED RESULTS

recreated service with latest image

ACTUAL RESULTS

no image will be updated and service will be re-created

@felixfontein felixfontein added docker-compose-v1 Docker Compose v1 bug Something isn't working labels Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docker-compose-v1 Docker Compose v1
Projects
None yet
Development

No branches or pull requests

2 participants