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 setting for "docker-compose --compatibility" #2021
Comments
Is command customization not sufficient? I don't know that the |
I think Docker is working on new iteration of Compose spec that will bring CPU and memory limits back... |
The docker/compose#4513 It appears that the (Or, if this is rejected, leaving this note here may help others anyway.) |
Is a setting specific to compatibility any easier to discover than the generic command customization settings, though? @karolz-ms do you know where the info about those compose items possibly returning is? |
@bwateratmsft the cpu limits etc reintroduction is tracked by this issue Given this is point-in-time limitation and that a good workaround exists (command customization is a good fit for those who want |
Good to know. It seems like there is actual traction on the issue; i.e. there are PRs being created and merged. So, I agree that this seems like a point-in-time problem. |
@sburlappp based on the availability of command customization and the temporary nature of the issue, we have decided not to add this setting. Nevertheless, we do want to thank you for your suggestion, we really appreciate it! |
Docker removed the ability to easily define memory and CPU limits on services in v3 Compose files, unless you're also using Swarm. However, they did eventually add the "--compatibility" flag as a work-around:
https://docs.docker.com/compose/compose-file/compose-versioning/#compatibility-mode
This can currently be enabled in VScode by adding these lines to settings.json:
Please consider adding an option "docker.dockerComposeCompatibility" which would work like docker.dockerComposeBuild and docker.dockerComposeDetached to add the "--compatibility" option when desired. (Also, please consider having it default to "true".)
The text was updated successfully, but these errors were encountered: