Skip to content

Conversation

@cmrigney
Copy link
Contributor

@cmrigney cmrigney commented Dec 5, 2025

What I did

Instead of checking the "profiles" feature to enable profiles, it will check the DD feature flag. This will enable us to roll out the feature in sync with the DD UI changes.

This only applies when the plugin is running with Docker Desktop installed. For Docker CE and container mode, this will still use the "profiles" CLI flag.

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@cmrigney cmrigney requested a review from bobbyhouse December 5, 2025 21:16
@cmrigney cmrigney requested a review from a team as a code owner December 5, 2025 21:16

// featureListCommand creates the `feature list` command
func featureListCommand(dockerCli command.Cli) *cobra.Command {
func featureListCommand(dockerCli command.Cli, features features.Features) *cobra.Command {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We shouldn't be able to enable/disable the profiles feature when running in DockerDesktop but we shouldn't we be able to list it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, good question. Our current experience would make that a little awkward I think. If we listed it but then when they tried to enable it we said "we don't know what that flag is," it might seem like a bug. We could probably be smarter about it and say "only supported in Docker CE or container mode".

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since profiles are supported in both CE an Desktop, CE users will still toggle profile support via the cli?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct, they'll still use the cli toggle. DD users will have to use the DD feature flag.

addQuietFlag(flags, &opts.Quiet)
if isWorkingSetsFeatureEnabled(dockerCli) {
if features.IsProfilesFeatureEnabled() {
addWorkingSetFlag(flags, &opts.WorkingSet)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is still controversial, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure I understand, could you elaborate?

@cmrigney cmrigney merged commit 8e3f3b9 into main Dec 8, 2025
8 checks passed
@cmrigney cmrigney deleted the unify-profiles-flag branch December 8, 2025 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants