admin管理员组文章数量:1403436
I have Docker Desktop on Windows 10 but using WSL 2 Ubuntu distro. I am behind a company vpn Anyconnect and before hand I was getting unable to get local issuer certificate
errors when I would run npm ci
via the terminal.
I set my export ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
and npm config set cafile /etc/ssl/certs/ca-certificates.crt
it started working and can now run npm ci
from the Ubuntu terminal.
However, when I run docker compose build
I am getting the same errors as before when it hits the npm ci
part of the Dockerfile.
I have tried adding this to my Dockerfile:
ENV NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/my-ca.crt
I tried sudo apt-get install ca-certificates
and tried to follow Docker in WSL - unable to get local issuer certificate
Main part of the error:
ERR! install request to .13.0/linux-x64.tar.gz failed, reason: unable to get local issuer certificate
Essentially npm ci works from my WSL2 Ubuntu terminal but not from Docker which uses WSL 2 Ubuntu distro
本文标签: ubuntuDocker compose build failing at npm ci because of local issuer certificateStack Overflow
版权声明:本文标题:ubuntu - Docker compose build failing at npm ci because of local issuer certificate - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744386625a2603770.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论