Closed guilhermebr closed 6 years ago
Hi, thank you for trying cbi!
You can push to an local insecure registry.
Actually I’m using an local insecure registry for ~Travis +~ kubeadm-dind-cluster testing. (EDIT: push is not tested on Travis atm) https://github.com/containerbuilding/cbi/blob/master/hack/dind/up.sh
An example BuildJob
would be
apiVersion: cbi.containerbuilding.github.io/v1alpha1
kind: BuildJob
metadata:
name: ex-git-push
spec:
registry:
target: somewhere.local/foo/bar
push: true
language:
kind: Dockerfile
context:
kind: Git
git:
url: git://github.com/foo/bar
http://somewhere.local
needs to be accessible from both the host and containers. You might need to configure DNS or /etc/hostsinsecure-registries
of /etc/docker/daemon.json
on the host. https://docs.docker.com/registry/insecure/Thanks!!
Is it possible to push with Docker plugin to an insecure registry?