Skip to content

fix: apply container filter defaults to config files - #803

Open
mitar wants to merge 1 commit into
nginx-proxy:mainfrom
mitar:config-args
Open

mitar wants to merge 1 commit into
nginx-proxy:mainfrom
mitar:config-args

Conversation

@mitar

@mitar mitar commented Oct 28, 2026

Copy link
Copy Markdown

Since 0.16.0, the container filter defaults are applied only to the config built from command line options. With -config, stopped containers are included, and onlyexposed (used in the README and in examples/docker-gen.cfg), onlypublished and includestopped are silently ignored. Templates then see stopped containers without networks, which can, for example, produce empty nginx upstreams.

This restores the three config file options and applies the same defaults to every config. It also documents config.ContainerFilter for config files, and fixes the filter names in the -only-exposed and -only-published help (expose and publish).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant