-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
docker-compose command changed to docker compose for upgrade to Docker Compose V2
#1125
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
docker-compose command changed to docker compose for upgrade to Docker Compose V2
#1125
Conversation
docker-compose command changed to docker compose for upgrade to Docker Compose V2
|
LGTM. Thanks for taking care of #1048 ! |
|
Thanks! @yariksheptykin I've updated the I've also removed the |
|
I think this PR will require additional work to install "docker compose v2" inside of test images Related failed tests in CI: |
|
@denis256 Is this something that I can do or is it CircleCI related? I'm just not sure what you mean by "test images". Thanks! |
|
@nialdaly I'm not a big CicleCI expert, but I thing we will need to install compose plugin for docker in a similarly to how we install buildx in the CI. I expect that this can be accomplished by duplicating buildx block and adjusting it for installing compose. Something like this I imagine: env: &env
environment:
DOCKER_CONFIG: ~/.docker/
DOCKER_COMPOSE_VERSION: v2.5.0
...
# Installation script for docker compose plugin. See: https://docs.docker.com/compose/install/#install-compose-on-linux-systems
install_docker_compose: &install_docker_compose
name: install docker compose
command: |
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/"$DOCKER_COMPOSE_VERSION"/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
docker compose version
...
test:
...
- run:
<<: *install_docker_composeThis is just a thought experiment thought, this CI config might not work. |
|
Thanks for the guidance! @yariksheptykin I've made a change to the |
|
CI job failed, on step |
|
Failed tests seems unrelated with changes from PR |
|
@nialdaly thanks for implementing v2 support! |
|
No problem, thanks @yariksheptykin and @denis256 for the guidance! |
Summary
This PR includes changes made to replace the Docker Compose command,
docker-composewithdocker composefor the proposed upgrade to Docker Compose V2. This is a proposed solution to issue 1048.