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

Add with-registry-auth parameter to service create module #831

Open
bpoirriez opened this issue Apr 4, 2024 · 2 comments
Open

Add with-registry-auth parameter to service create module #831

bpoirriez opened this issue Apr 4, 2024 · 2 comments
Labels
docker-swarm Docker Swarm enhancement New feature or request

Comments

@bpoirriez
Copy link

SUMMARY

The --with-registry-auth parameter is not exposed in the swarm_service module. It is needed when deploying a service from a private registry.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

community.docker.docker_swarm_service

ADDITIONAL INFORMATION

The stack module exposes the --with-registry-auth parameter. The service create cli has the same parameter but it is not exposed in the service module.

Is there a reason why it is not exposed in this service module ?

@felixfontein felixfontein added enhancement New feature or request docker-swarm Docker Swarm labels Apr 4, 2024
@felixfontein
Copy link
Collaborator

Docker SDK for Python does not seem to expose such an option. The module does not call the Docker CLI tool, it directly talks to the Docker Daemon.

@Tree4Free
Copy link

I am not using swarm but I just execute a community.docker.docker_login before executing a community.docker.docker_compose_v2 in my Ansible Playbook. Might work with swarm too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker-swarm Docker Swarm enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants