This is done by introducting the concept of "namespaces" of container names. The aliases of a container are under this namespace. Namespace names are of the form: //<namespace>/<alias> This allows us to (within cAdvisor) query all docker containers as //docker regardless of whether this is a systemd or a non-systemd system. This does break our ability to handle Docker aliases with the /container endpoint. I think this is acceptable as our support there was not consistent between system types. |
||
---|---|---|
.. | ||
container_test.go | ||
container.go | ||
machine.go | ||
manager_test.go | ||
manager.go |