Skip to content

Conversation

@thaJeztah
Copy link
Member

This attempts to make it clearer that the --cgroup-parent option is only used for the containers used during build. Instead of mentioning "build container", I opted for using "RUN instructions" (to match the --network description), although this may not be ideal (as it assumes the "Dockerfile" front-end, which of course may not be the case).

This attempts to make it clearer that the --cgroup-parent option is only used
for the containers used during build. Instead of mentioning "build container",
I opted for using "RUN instructions" (to match the --network description),
although this may not be ideal (as it assumes the "Dockerfile" front-end, which
of course may not be the case).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
flags.StringArrayVar(&options.cacheTo, "cache-to", []string{}, `Cache export destinations (e.g., "user/app:cache", "type=local,dest=path/to/dir")`)

flags.StringVar(&options.cgroupParent, "cgroup-parent", "", "Optional parent cgroup for the container")
flags.StringVar(&options.cgroupParent, "cgroup-parent", "", `Set the parent cgroup for the "RUN" instructions during build`)
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm definitely open to suggestions for the description (also see PR description above). Not sure what the least ambiguous description would be for this.

@crazy-max crazy-max requested a review from dvdksn August 7, 2023 12:44
Copy link
Contributor

@dvdksn dvdksn left a comment

Choose a reason for hiding this comment

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

LGTM!

@dvdksn
Copy link
Contributor

dvdksn commented Aug 8, 2023

I think it's safe to assume that "RUN" instruction is the most approachable way to convey this at the moment. IMO there's no better way to refer to "build container exec" that's also a one-liner.

@tonistiigi tonistiigi added this to the v0.12.0 milestone Aug 21, 2023
@crazy-max crazy-max merged commit 626e6f8 into docker:master Aug 23, 2023
@thaJeztah thaJeztah deleted the cgroup_parent_description branch August 23, 2023 08:26
@thaJeztah
Copy link
Member Author

I'm considering; perhaps we should put the options in groups.

  • options used during build (during "RUN")
  • options for the output
  • options for ....

I added some "ad-hoc" grouping for commands in the CLI at some point

But that one is really tacky, and really for "our specific purpose". ISTR though that Cobra also added some options to group things, so perhaps we need to look into that.

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