oci: Use Enum Mode.DOCKER instead of str comparision

The oci plugin was comparing the mode variable to a string of "docker" instead of the Enum itself.

When using this with a element, I noticed that this method was causing issues in comparison, and this change fixed it.

This MR is a draft as a temporary fix, whilst I investigate further.

Merge request reports

Loading