Docker source code secure

Hello
is there any way to secure the source code after running a container or to prevent access for all users on the machine from accessing the container using exec?