As I understood from Docker official documentation, both environment variable DOCKER_CONTENT_TRUST and deamon config content-trust prevents the usage of unsigned tags. If I want to restrict using un-signed images, what will be the best option?
Option1: export DOCKER_CONTENT_TRUST=1
Option2: /etc/docker/daemon.json:
{
"content-trust": {
"mode": "enforced"
}
}