General Docker Issues

Problem:

Tying to deploy any service in openshift cluster and getting this error in one of the steps:

--- Prepare docker image to push ---

WARNING! Using --password via the CLI is insecure. Use --password-stdin.

Error response from daemon:

Get https://docker-registry-default.apps.<domain>/v2/: x509: certificate signed by unknown authority


Solution:

Add your CPASS domain into the insecure registries to the daemon.json file of a docker file. Enter below commands in the terminal..

$ cd ~

$ cd ~/.docker

$ ls -lart

total 24

drwxr-xr-x <some content> 13 Mar 2020 application-template

-rw------- <some content> 13 Mar 2020 .buildNodeID

-rw-r--r--@ <some content> 13 Mar 2020 daemon.json

drwxrwxrwx+ <some content> 13 Mar 2020 ..

-rw-------@ <some content> 13 Mar 2020 config.json

drwxr-xr-x <some content> 13 Mar 2020 .

$ vim daemon.json

$ cat daemon.json

{

"experimental" : false,

"debug" : true,

"insecure-registries" : [

"<domain>"

]

}

$