Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add runc to the list of possible container entrypoint parents #712

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

mattpag
Copy link
Contributor

@mattpag mattpag commented Jul 9, 2019

What type of PR is this?

/kind rule-update

Any specific area of the project related to this PR?

/area rules

What this PR does / why we need it:

Add runc to the list of possible parents in the container_entrypoint macro since the docker- prefix added to the binary has been removed starting with Docker CE version 18.09.
Without this, rules like "Terminal shell in container" were not triggered when expected while using recent Docker releases.

See https://github.com/docker/docker-ce/releases/tag/v18.09.0 ("Remove 'docker-' prefix for containerd and runc binaries docker-archive/engine#61 / moby/moby#37907, docker/docker-ce-packaging#241")

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

add runc to the list of possible parents in the container_entrypoint macro

fntlnz
fntlnz previously approved these changes Jul 9, 2019
@poiana
Copy link
Contributor

poiana commented Jul 9, 2019

LGTM label has been added.

Git tree hash: 7b5aa33ff18ffbf98376d5bd754a2d68b9040acf

@poiana poiana added the approved label Jul 9, 2019
@fntlnz
Copy link
Contributor

fntlnz commented Jul 9, 2019

Great @mattpag ! Good catch!

leodido
leodido previously approved these changes Jul 9, 2019
Copy link
Member

@leodido leodido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@leodido
Copy link
Member

leodido commented Jul 9, 2019

@mattpag thanks!

Could you please rebase it?

Docker versions >= 18.09 removed the "docker-" prefix, so include runc
in the list.

Signed-off-by: Mattia Pagnozzi <mattia.pagnozzi@gmail.com>
@mattpag
Copy link
Contributor Author

mattpag commented Jul 9, 2019

@leodido done

@leodido leodido self-requested a review July 9, 2019 10:36
@poiana poiana added the lgtm label Jul 9, 2019
@poiana
Copy link
Contributor

poiana commented Jul 9, 2019

LGTM label has been added.

Git tree hash: f05562ff2c4a14b7328157fca413d5a947e7d6de

@poiana poiana added the approved label Jul 9, 2019
@Kaizhe
Copy link
Contributor

Kaizhe commented Jul 9, 2019

/lgtm

@poiana
Copy link
Contributor

poiana commented Jul 9, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fntlnz, Kaizhe, leodido

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fntlnz fntlnz merged commit a32870a into dev Jul 9, 2019
@poiana poiana deleted the expand-entrypoint-macro branch July 9, 2019 12:31
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.

5 participants