Skip to content

Instantly share code, notes, and snippets.

@Aisuko
Created June 27, 2019 06:50
Show Gist options
  • Save Aisuko/e338f75d04d25211224e1173938c34c3 to your computer and use it in GitHub Desktop.
Save Aisuko/e338f75d04d25211224e1173938c34c3 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: dind-stable
spec:
containers:
- name: docker-cmds
image: docker:stable
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:stable-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