Skip to content

[release/1.7] cri: Don't use rel path for image volumes#8926

Merged
estesp merged 1 commit intocontainerd:release/1.7from
kinvolk:rata/runc-abs-path-1.7
Aug 7, 2023
Merged

[release/1.7] cri: Don't use rel path for image volumes#8926
estesp merged 1 commit intocontainerd:release/1.7from
kinvolk:rata/runc-abs-path-1.7

Conversation

@rata
Copy link
Copy Markdown
Contributor

@rata rata commented Aug 7, 2023

This is a backport of: #8885 for 1.7.


Runc 1.1 throws a warning when using rel destination paths, and runc 1.2 is planning to thow an error (i.e. won't start the container).

Let's just make this an abs path in the only place it might not be: the mounts created due to VOLUME directives in the Dockerfile.

Signed-off-by: Rodrigo Campos [email protected]
(cherry picked from commit 2d64ab8)

@k8s-ci-robot
Copy link
Copy Markdown

Hi @rata. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@rata
Copy link
Copy Markdown
Contributor Author

rata commented Aug 7, 2023

cc @thaJeztah

@rata rata force-pushed the rata/runc-abs-path-1.7 branch from 8900e38 to f3d6ec3 Compare August 7, 2023 14:19
@rata rata changed the title cri: Don't use rel path for image volumes [release/1.7] cri: Don't use rel path for image volumes Aug 7, 2023
Runc 1.1 throws a warning when using rel destination paths, and runc 1.2
is planning to thow an error (i.e. won't start the container).

Let's just make this an abs path in the only place it might not be: the
mounts created due to `VOLUME` directives in the Dockerfile.

Signed-off-by: Rodrigo Campos <[email protected]>
(cherry picked from commit 2d64ab8)
@rata rata force-pushed the rata/runc-abs-path-1.7 branch from f3d6ec3 to 4e97a11 Compare August 7, 2023 15:25
@estesp
Copy link
Copy Markdown
Member

estesp commented Aug 7, 2023

/ok-to-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants