Answer the question
In order to leave comments, you need to log in
How to block access to files that are in a docker container?
There is a project that is built in docker via docker-compose.yml, it has several containers, there is a base and there is a project code. The project itself is a web resource.
There was a task, it is necessary to transfer the given project for registration in the register. They just don't need access to the web resource. An installation distribution is required so that their specialist can install this project only on a local machine.
If you just give docker-compose.yml and just load it from the registry, then in the end they can go either into the image or into the container and see the project code there.
If you make an image through a virtual machine, then resetting the password is not difficult, I already found commands to reset the root password, it turns out that it also disappears.
What other options are there? I beg you to advise!
Answer the question
In order to leave comments, you need to log in
In general, no way.
That is, you can play around with encryption / obfuscation, but since the program must run, then with more or less difficulty you can get the code - if we are talking about interpreted languages.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question