Kubernetes 会自动下载 Docker 图像吗?
Does Kubernetes download Docker image automatically?
当我创建 pod 时,Kubernetes 会自动下载 Docker 图像,还是我应该使用 Docker 手动拉取来本地下载图像?
您不需要手动 运行 docker pull
。 pod definition contains the image name to pull and Kubernetes will pull the image for you. You have several options in terms of defining how Kubernetes will decide to pull the image, using the imagePullPolicy:
definition in your pod spec. Much of this is documented here,但基本上如果图像不存在,您可以拉取,始终拉取,从不更新(一旦图像是本地的)。希望该文档可以帮助您入门。
当我创建 pod 时,Kubernetes 会自动下载 Docker 图像,还是我应该使用 Docker 手动拉取来本地下载图像?
您不需要手动 运行 docker pull
。 pod definition contains the image name to pull and Kubernetes will pull the image for you. You have several options in terms of defining how Kubernetes will decide to pull the image, using the imagePullPolicy:
definition in your pod spec. Much of this is documented here,但基本上如果图像不存在,您可以拉取,始终拉取,从不更新(一旦图像是本地的)。希望该文档可以帮助您入门。