You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flags such as --with-registry-auth therefore not be passed to docker.
Here is the full list of Flags supported by Docker:
Usage: docker stack deploy [OPTIONS] STACK
Deploy a new stack or update an existing stack
Aliases:
deploy, up
Options:
--bundle-file string Path to a Distributed Application Bundle file
-c, --compose-file strings Path to a Compose file, or "-" to read from stdin
--orchestrator string Orchestrator to use (swarm|kubernetes|all)
--prune Prune services that are no longer referenced
--resolve-image string Query the registry to resolve image digest and supported platforms ("always"|"changed"|"never") (default "always")
--with-registry-auth Send registry authentication details to Swarm agents
I'm sorry, after checking the source code (and trying to implement the above mentioned solution), I realized that the functionality is actually present, just the documentation a bit lacking.
Use Case
The type/provider
docker_stack
does not support various flags fordocker stack deploy
, unlike the now deprecated definedocker::stack
:Flags such as
--with-registry-auth
therefore not be passed to docker.Here is the full list of Flags supported by Docker:
Describe the Solution You Would Like
These flags should be implemented as parameters in https://github.com/puppetlabs/puppetlabs-docker/blob/master/lib/puppet/provider/docker_stack/ruby.rb
Alternatively, just taking an arbitrary parameter such as
extra_flags
which then gets appended to the generated flags is also a possibility.The text was updated successfully, but these errors were encountered: