I am trying to login to private nexus docker repository using bitbucket pipeline
I have added below step to pipeline.yaml
docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD <REPO_URL>:<PORT>
but I am getting below error
Error response from daemon: Get https://<domain name>:8124/v2/: x509: certificate signed by unknown authority
I know how to resolve it on my localhost, where I need to add ssl certificate to docker and restart docker daemon.
Please can you guide how can I resolve this in the bitbucket pipeline?