Have you searched the forum for it?
For instance, we discussed it here: Container Security & Encryption
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…