You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
А week-long search yielded small results, A temporary solution could be as follows.
I launched werf locally in docker, login as root user and manually add cert to trust store and commit container changes and use this container for build. This solve my problem
# start container
docker run -d --name werf registry.werf.io/werf/werf:latest /bin/bash -c "sleep infinity"
# exec into container with root user
docker exec -it --user root werf /bin/bash
# do what you want
cat > /usr/local/share/ca-certificates/custom-ca.crt <<EOF
-----BEGIN CERTIFICATE-----
# insert ca here
-----END CERTIFICATE-----
EOF
# update cert
update-ca-certificates
# commit changes and push to docker repo
docker commit werf
I still believe werf should allow this in the default image. It can not be expected from users who use self signed certificates to build their own docker images on top of werf.
Before proceeding
Problem
I need to add a custom root ca to the werf docker container. This is not possible atm because the docker user does not have the permission to do so.
Solution (if you have one)
Give user access to
/etc/ssl/certs/ca-certificates.crt
in alpine docker image or add a flag/env_var to all commandsAdditional information
No response
The text was updated successfully, but these errors were encountered: