On my Ubuntu Server I track the system state with Telegraf (& InfluxDB & Grafana).
Random container names are listed here all the time.
These are only assigned when a container has not been given a name!?
I create Docker containers only via Docker Compose, here all containers have “container_name” assigned.
How can I find out where or from what these containers are created that have random deault names?
can show you everything about the container, including labels added by docker compose. Those labels tell you where the compose file was for example.
In case of a simple container created by docker run there is no way to tell except the image of course if you recognize that and know where that was used.