What does the parameter labels
and env
in docker daemon.json
do?
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3",
"labels": "test",
"env": "os,customer"
}
}
After reading the docker documentation, there is no description for it. And I set it up, I didn’t find anything that worked.
Is it just a marker for docker daemon?
Reference document:dockerd、Docker object labels