Cannot copy CA cert into docker image for self-signed joining
Host is CentOS 7, pulled down the gitlab-runner docker instance without any issue. When I try to copy the crt into the docker image I am told that the directory doesn't exist:
[user@gitlabci-docker ~]$ sudo docker cp /etc/pki/ca-trust/source/anchors/ca.crt gitlab-runner:/etc/gitlab-runner/certs/ca.crt
Error response from daemon: lstat
/var/lib/docker/devicemapper/mnt/a3952a7113fa860d3956c93797691b2e648ccb84ea9ab704f001c4f05278df3a/rootfs/etc/gitlab-runner/certs: no such file or directory
I've been trying to follow the docker guidance, but it's not very clear on exactly what commands to run to install the self-signed certs, so this is the closest I could get. Any advice? Help!