Yung Yung
Yung Yung

Reputation: 71

Docker: hiding process command names from the host

When running a docker container, is it possible to obfuscate processes' command names from the host? My problem is that one of my processes currently scans the process list to ensure that it's the unique instance, but I'd like to run separate instances in both the container and the host.

Upvotes: 0

Views: 390

Answers (1)

Itamar Turner-Trauring
Itamar Turner-Trauring

Reputation: 3890

You can change the process title inside your code. E.g. on python you can use https://pypi.org/project/setproctitle/, other programming languages should have similar libraries.

Upvotes: 1

Related Questions