docker run指定entrypiont
生活随笔
收集整理的這篇文章主要介紹了
docker run指定entrypiont
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
指定entrypiont
- 錯誤的姿勢
- 正確的姿勢1
- 正確姿勢2:
- 正確姿勢3: 掛腳本方式
也可以指定這些:
https://docs.docker.com/engine/reference/run/#entrypoint-default-command-to-execute-at-runtime
如何在k8s里指定docker run -w 的workdir
$ cat centos.yaml apiVersion: v1 kind: Pod metadata:name: my-centoslabels:app: centos spec:containers:- name: my-centosimage: centos:6.8imagePullPolicy: IfNotPresentcommand: ["top","-b"]env:- name: PWDvalue: "/tmp" 與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的docker run指定entrypiont的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Spark3.1.1 Docker镜像中
- 下一篇: k8s查看节点CPU消耗情况