Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- docker run --name $container_name --net=my_net --ip=10.0.1.5 -ti --privileged -it -v /dev:/dev -v /lib/modules:/lib/modules $container_name
- spec:
- serviceName: srv
- replicas: 1
- selector:
- matchLabels:
- app: app
- updateStrategy:
- type: RollingUpdate
- template:
- metadata:
- labels:
- app: app
- spec:
- containers:
- - name: sp
- image: DockerRegistry:5000/sp:v2
- securityContext:
- privileged: true
- ports:
- - containerPort: 222
- volumeMounts:
- - name: dev
- mountPath: /dev
- - name: lib-modeles
- mountPath: /lib/modules
- volumes:
- - name: lib-modeles
- hostPath:
- path: /lib/modules
- - name: dev
- hostPath:
- path: /dev
Add Comment
Please, Sign In to add comment