Is it a practical idea to use Docker to protect the IP? I develop Python code to make scientific instruments. It is easy for users to read the Python code and understand the algorithms. I want to prevent the leaks of the IP.
If I put the sensitive part of the Python code in a Docker container and ship the products with it, how much protection does it give me? In other words, can people break into the container and view the Python code still? I assume that the hackers can obtain the Linux root credential somehow. Thanks.
I hope you did not bake secrets or environment specific details into your image. Both are supposed to be configured through runtime, e.g. using environment variables that the entrypoint script renders into the target configuration when the container starts, or by mapping (configuration?) files into the container. Swarm services additional support configs and secrets to be mounted as files into the container…