- Run
oc apply -f dind.yaml
to deploy a Docker-in-Docker pod. - Run
oc exec -it dind bash
to connect to the pod. - Run
docker pull hello-world
to validate the environment. - If you get a timeout failure when pulling the issue, update
/etc/resolv.conf
inside the runningdind
container instance to set the primary nameserver:
search [existing-cluster-specific-search-domains]
nameserver 8.8.8.8
nameserver [existing-cluster-specific-nameserver]
options ndots 5
- In my experience, it can be temperamental to connect to the pod if it lands on specific Nodes for some unknown reason. If this occurs (timing out during the initial
oc exec -it dind bash
), delete the pod and recreate it to place it on another Node.