Jenkins issue with docker push to private repo -
i'm running jenkins server on dc/os, , got private registry in same dc.
the private registry not have ssl certificate , push images mac used following command
ocker-machine ssh default "echo $'extra_args=\"--insecure-registry \"' | sudo tee -a /var/lib/boot2docker/profile && sudo /etc/init.d/docker restart"
so worked fine.
on jenkins tried set docker_opts see https://docs.docker.com/registry/insecure/
but figured build running on agent, how configure jenkins worker trust private registry?
if installed jenkins mesosphere universe, default jenkins agent container uses docker-in-docker.
see dc/os jenkins service guide how configure docker run parameters add environment variables: https://docs.mesosphere.com/1.8/usage/service-guides/jenkins/advanced-configuration/
Comments
Post a Comment