In the Docker container, we need to be able to exec into it and view the application code and Dockerfile, but I want to set up a password for the users to restrict access

We have deployed the Docker image in the client’s environment, and the client is using the docker exec command to view the application source code. We need to set up permissions within the container to control access to the source code.

This is not possible. This topic has been discussed a couple of times. The forum search should have found at least this topic.