DCA Exam QuestionsBrowse all questions from this exam

DCA Exam - Question 6


Is this a way to configure the Docker engine to use a registry without a trusted TLS certificate?

Set and export the IGNORE_TLS environment variable on the command line.

Show Answer
Correct Answer:

Discussion

2 comments
Sign in to comment
LavaPupOption: B
Dec 7, 2024

No, Docker does not have an environment variable like IGNORE_TLS to bypass TLS verification for a registry. If you need to interact with a Docker registry that does not have a trusted TLS certificate, you must configure Docker explicitly to allow the use of an insecure registry.

__rajan__Option: B
Jan 7, 2025

The correct ways to configure Docker to use an insecure registry are: a. Using the daemon.json file: { "insecure-registries" : ["myregistry.example.com:5000"] } b. Using the Docker daemon flag: --insecure-registry myregistry.example.com:5000