In test environment or a private network, you may choose not to use a certificate issued by a well-known certificate authority for a private Docker registry with Artifactory. Docker client operation with such certificate requires additional configuration, and you can make the configuration by using the insecure flag or manually trusting the certificate. Please visit this link for more details on how to do this.
Failure to set this up will result in error similar to below:
FATA Error response from daemon: v1 ping attempt failed with error:
Get https://myregistrydomain.com:5000/v1/_ping: tls: oversized record received with length 20527.
If this private registry supports only HTTP or HTTPS with an unknown CA certificate,please add
`–insecure-registry myregistrydomain.com:5000` to the daemon's arguments.
In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag;
simply place the CA certificate at /etc/docker/certs.d/myregistrydomain.com:5000/ca.crt