'Can I enable FIPS 140-2 only for some selected Docker (podman) containers? For automated testing purposes only

For the purposes of testing my application under FIPS 140-2 environment, I thought of running a fipsed container.

Is this possible to do, without putting the entire host machine into FIPS mode, and having all containers be running under FIPS restrictions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source