Docker Community Forums

Share and learn in the Docker community.

What are the possibilities to run a software in a container only if a key/serial has been stored?

Like the topic says:
What are the possibilities to run a software in a container only if a key/serial has been stored?

-Maybe there running a little webserver and database in the container where you can visited a site to enter the key/serial
-or transferring a file where the key/serial is stored to the containers directory

The container would have to “radio” to another server at certain intervals and transmit its host internet IP or the key/serial to see that the image is not being used on other servers for which there is no key/serial.

However, one must not be able to read the data traffic, because otherwise one can also read the key/serial.
Therefore I would prefer that no key but the host internet IP of the server is transmitted.

Do you expect Docker to provide some standard way to achieve this? It doesn’t. But: any custom solution that works without Docker will probably also work from within a container; Docker is not limiting your options, and it’s not a Docker-specific problem.

Build it without Docker first. Next, when using some web server you’ll have to publish the required ports to access that user interface, or when using some license file you’ll need some bind mount to make it available to the container. Both are basic, standard Docker functionality.

It seems to me that some registered user already knows those details. But regardless: today there is no reason not to use TLS/HTTPS for any network traffic, and that is not different for traffic originating from a container.