[docker-in-docker] - Fix for multiple vulnerability issues related to docker compose-switch component. #1541
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description: This PR is submitted to fix multiple vulnerability issues related to outdated docker compose-switch component.
The compose-switch is a compatibility layer from Docker that:
Translates docker-compose (v1 CLI) commands to docker compose (v2 CLI) - It intercepts calls to the legacy docker-compose command and translates them to use Docker Compose V2 under the hood
Provides backward compatibility - Allows users/scripts that use the old docker-compose syntax to continue working with Compose V2
This compose-switch repository has not been updated for last three years and still compiled with outdated golang version 1.16 giving below vulnerability alerts for images using docker-in-docker feature. As part of this change
installDockerComposeSwitchflag is being made false such that the compose-switch component isn't installed by default while attributing the docker-in-docker feature in any image.Changelog:
previewanddailyversions of dotnet 10previewanddailyversions of dotnet 10.Checklist:
1.16.15(golang)pkg:golang/stdlib@1.16.15<1.21.111.21.110.085%25th percentileDescription
<1.19.91.19.90.243%47th percentileDescription
<1.19.81.19.80.646%70th percentileDescription
<1.23.81.23.80.043%13th percentileDescription
<1.19.101.19.100.009%1st percentileDescription
<1.17.111.17.110.026%7th percentileDescription
<1.24.111.24.110.015%2nd percentileDescription
<1.24.81.24.80.031%8th percentileDescription
<1.24.81.24.80.031%8th percentileDescription
<1.24.81.24.80.016%3rd percentileDescription
<1.24.91.24.90.016%3rd percentileDescription
<1.22.71.22.70.147%36th percentileDescription
<1.22.71.22.70.306%53rd percentileDescription
<1.21.121.21.120.635%70th percentileDescription
<1.21.81.21.81.498%81st percentileDescription
<1.21.91.21.966.635%98th percentileDescription
<1.20.01.20.00.185%40th percentileDescription
<1.20.111.20.110.097%27th percentileDescription
<1.20.101.20.1094.427%100th percentileDescription
<1.20.101.20.100.150%36th percentileDescription
<1.19.81.19.80.013%1st percentileDescription
<1.19.81.19.80.066%21st percentileDescription
<1.19.81.19.80.045%14th percentileDescription
<1.19.61.19.60.055%17th percentileDescription
<1.19.61.19.60.017%3rd percentileDescription
<1.19.61.19.60.229%45th percentileDescription
<1.19.61.19.60.175%39th percentileDescription
<1.18.91.18.90.069%21st percentileDescription
<1.18.81.18.80.022%5th percentileDescription
<1.18.71.18.70.016%3rd percentileDescription
<1.17.131.17.130.100%28th percentileDescription
<1.17.121.17.120.087%25th percentileDescription
<1.17.111.17.110.024%6th percentileDescription
<1.17.121.17.120.084%25th percentileDescription
<1.17.121.17.120.084%25th percentileDescription
<1.17.121.17.120.041%12th percentileDescription
<1.17.121.17.120.034%9th percentileDescription
<1.17.111.17.110.082%24th percentileDescription
<1.18.71.18.70.031%9th percentileDescription
<1.18.71.18.70.016%3rd percentileDescription
<1.17.91.17.90.129%33rd percentileDescription
<1.17.121.17.120.013%2nd percentileDescription
<1.18.61.18.60.093%27th percentileDescription
<1.17.91.17.90.132%33rd percentileDescription
<1.19.91.19.90.048%15th percentileDescription
<1.19.91.19.90.065%20th percentileDescription