{"id":15019994,"url":"https://github.com/docker/compose-switch","last_synced_at":"2025-05-15T19:08:29.103Z","repository":{"id":37855027,"uuid":"403569017","full_name":"docker/compose-switch","owner":"docker","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-09T10:28:23.000Z","size":57,"stargazers_count":202,"open_issues_count":12,"forks_count":35,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-04-08T00:38:16.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-06T09:51:53.000Z","updated_at":"2025-04-06T09:28:46.000Z","dependencies_parsed_at":"2024-06-18T13:40:07.234Z","dependency_job_id":"7af43e97-6888-4ec8-83c7-aceb882a119b","html_url":"https://github.com/docker/compose-switch","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker%2Fcompose-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker%2Fcompose-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker%2Fcompose-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docker%2Fcompose-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docker","download_url":"https://codeload.github.com/docker/compose-switch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254404357,"owners_count":22065641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T19:54:26.447Z","updated_at":"2025-05-15T19:08:29.079Z","avatar_url":"https://github.com/docker.png","language":"Go","readme":"Compose Switch \n--------------\n\nCompose Switch is a replacement to the Compose V1 `docker-compose` (python) executable. It translates the command line into Compose V2 `docker compose` then run the latter. \n\n## installation\n\nWe provide a script for automated installation:\n\n```console\n$ curl -fL https://raw.githubusercontent.com/docker/compose-switch/master/install_on_linux.sh | sh\n```\n\n### Manual installation\n\n1. download compose-switch binary for your architecture\n```console\n$ curl -fL https://github.com/docker/compose-switch/releases/latest/download/docker-compose-linux-amd64 -o /usr/local/bin/compose-switch\n```\n2. make compose-switch executable\n```console\n$ chmod +x /usr/local/bin/compose-switch\n```\n3. rename `docker-compose` binary if you already have it installed as `/usr/local/bin/docker-compose`\n```console\n$ mv /usr/local/bin/docker-compose /usr/local/bin/docker-compose-v1\n```\n4. define an \"alternatives\" group for `docker-compose` command\n```console\n$ update-alternatives --install /usr/local/bin/docker-compose docker-compose \u003cPATH_TO_DOCKER_COMPOSE_V1\u003e 1\n$ update-alternatives --install /usr/local/bin/docker-compose docker-compose /usr/local/bin/compose-switch 99\n```\n\n## check installation\n\n```console\n$ update-alternatives --display docker-compose\ndocker-compose - auto mode\n  link best version is /usr/local/bin/compose-switch\n  link currently points to /usr/local/bin/compose-switch\n  link docker-compose is /usr/local/bin/docker-compose\n/usr/bin/docker-compose - priority 1\n/usr/local/bin/compose-switch - priority 99\n```\n\n## select Compose implementation to run by `docker-compose`\n\n```console\n$ update-alternatives --config docker-compose\nThere are 2 choices for the alternative docker-compose (providing /usr/local/bin/docker-compose).\n\n  Selection    Path                           Priority   Status\n------------------------------------------------------------\n* 0            /usr/local/bin/compose-switch   99        auto mode\n  1            /usr/bin/docker-compose         1         manual mode\n  2            /usr/local/bin/compose-switch   99        manual mode\n\nPress \u003center\u003e to keep the current choice[*], or type selection number: \n```\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocker%2Fcompose-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocker%2Fcompose-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocker%2Fcompose-switch/lists"}