k8s默认会从远端拉取镜像,其配置参数imagePullPolicy为Always
containers:
- name: demo
image: image
imagePullPolicy: Never

pod报错"Back-off restarting failed container"解决办法
containers:
      - name: demo
        image: python:3.6
        imagePullPolicy: IfNotPresent # 这个设置 会从本地先找,没有从远处拉取
        command: [ "/bin/bash", "-ce", "tail -f /dev/null" ]

相关文章:

  • 2021-12-03
  • 2021-06-13
  • 2021-12-25
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
猜你喜欢
  • 2021-08-10
  • 2021-05-19
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2021-07-08
  • 2021-05-22
相关资源
相似解决方案