Skip to content

Instantly share code, notes, and snippets.

@cwbeitel
Created February 28, 2018 02:54
Show Gist options
  • Save cwbeitel/4d0b90fa3b929635ca738c39f92cc6da to your computer and use it in GitHub Desktop.
Save cwbeitel/4d0b90fa3b929635ca738c39f92cc6da to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: dind
spec:
containers:
- name: docker-cmds
image: docker:1.12.6
command: ['docker', 'run', '-p', '80:80', 'httpd:latest']
resources:
requests:
cpu: 10m
memory: 256Mi
env:
- name: DOCKER_HOST
value: tcp://localhost:2375
- name: dind-daemon
image: docker:1.12.6-dind
resources:
requests:
cpu: 20m
memory: 512Mi
securityContext:
privileged: true
volumeMounts:
- name: docker-graph-storage
mountPath: /var/lib/docker
volumes:
- name: docker-graph-storage
emptyDir: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment