Кладем сертификаты в папкуC:\ProgramData\Docker\certs.d\docker.nalogka.com
, должны получиться файлы:
C:\ProgramData\Docker\certs.d\docker.nalogka.com\client.cert C:\ProgramData\Docker\certs.d\docker.nalogka.com\client.key
Запускаем командуdocker run --rm --privileged -d -v /:/host -v C:\ProgramData\docker\certs.d:/certs.d alpine cp -r /certs.d /host/etc/docker/certs.d
How do I add client certificates?
You can add your client certificates in ~/.docker/certs.d/:/client.cert and ~/.docker/certs.d/:/client.key. You do not need to push your certificates with git commands.
When the Docker Desktop application starts, it copies the ~/.docker/certs.d folder on your Windows system to the /etc/docker/certs.d directory on Moby (the Docker Desktop virtual machine running on Hyper-V).