The problem I’ve encountered is preloading configurations.
This error can be replicated by creating an image and copy the pre defined config files into the file destination, by doing: COPY --chown=2003:2003 adfs/config.json /usr/local/bin/ignition/data/config/resources/core/ignition/identity-provider/adfs/ COPY --chown=2003:2003 adfs/resource.json /usr/local/bin/ignition/data/config/resources/core/ignition/identity-provider/adfs/
When the container is Running with that image with the preloaded configurations it throws this exception: java.nio.file.FileAlreadyExistsException: Resource collection path '/usr/local/bin/ignition/data/config/resources/core' exists but is not empty
The core collection is expected to be owned and managed entirely by the Ignition gateway instance.
If you want to "pre load" configuration, you should do so via the external resource collection, which is treated as immutable by the gateway and loaded before other sources as a base.
Some general background on how Ignition resources are encoded:
Concrete advice on what you're trying to do:
And some diagrams showing the single inheritance tree used for gateway configuration: