Skip to content

Do not append []string{""} to command to preserve Docker compatibility#6805

Merged
fuweid merged 1 commit intocontainerd:mainfrom
deckhouse:reset-empty-entrypoint
Apr 14, 2022
Merged

Do not append []string{""} to command to preserve Docker compatibility#6805
fuweid merged 1 commit intocontainerd:mainfrom
deckhouse:reset-empty-entrypoint

Conversation

@zuzzas
Copy link
Copy Markdown

@zuzzas zuzzas commented Apr 13, 2022

Preserve compatibility with docker run: https://github.com/moby/moby/blob/99b2894e17528d0f8640d91bc3c0001e5a99cb3b/daemon/create.go#L279-L282

Some build tools (notably docker build and docker commit) create a string slice with an empty string as the first member. This gets stripped in docker run and works transparently if you use docker/moby as container runtime. Does not work so well in the containerd, unfortunately.

@k8s-ci-robot
Copy link
Copy Markdown

Hi @zuzzas. 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.

@zuzzas zuzzas force-pushed the reset-empty-entrypoint branch from 2518336 to 5f3ce95 Compare April 13, 2022 10:29
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Apr 13, 2022

Build succeeded.

@AkihiroSuda AkihiroSuda added area/cri Container Runtime Interface (CRI) cherry-pick/1.6.x labels Apr 14, 2022
@AkihiroSuda
Copy link
Copy Markdown
Member

/ok-to-test

@fuweid fuweid merged commit e0abf62 into containerd:main Apr 14, 2022
@zuzzas zuzzas deleted the reset-empty-entrypoint branch April 14, 2022 14:57
@thaJeztah thaJeztah added cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch and removed cherry-pick/1.6.x labels Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch ok-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants