-
Notifications
You must be signed in to change notification settings - Fork 350
failed to create containerd container: taking runtime copy of volume #1059
Comments
the version of kubernetes is v1.12.3 |
The host directory is created here: https://github.com/containerd/cri/blob/master/pkg/server/container_create.go#L688 And the error is generated here: https://github.com/containerd/cri/blob/master/pkg/containerd/opts/container.go#L100 Several questions:
|
Actually the error is returned from: |
@keyingliu We should have done the We actually have an integration test for image volumes, and it works. https://github.com/containerd/cri/blob/master/integration/volume_copy_up_test.go The image will be useful for troubleshooting this issue. |
checked the dockerfile, there is only one VOLUME: And another different is, the |
guess it might be here: https://github.com/containerd/cri/blob/master/pkg/server/helpers.go#L377 |
@keyingliu Thanks! I think it is because of the You have Can you use I will send out a fix and cherry-pick to all supported versions, and rollout a patch release next week. Thanks for the bug report! |
@Random-Liu sure, we will use the workaround you mentioned, thanks! |
Got error when creating pod:
roughly go through the code, in
func (c *criService) generateVolumeMounts
But I didn't see where the directory is created.
pod spec like:
The text was updated successfully, but these errors were encountered: