kool
kool copied to clipboard
Move from `docker-compose` to `docker compose`
It should be feature complete by now.
@kool-dev/core-members ideas we have:
- parse docker version to check if
docker compose
is available and stable - implement or look for an in-memory cache solution so we can store the
compose
command for a day...maybe - warning message about
docker-compose
deprecation
links:
- https://github.com/docker/compose-switch
- https://pkg.go.dev/github.com/docker/libcompose
- https://github.com/compose-spec/compose-go
- https://pkg.go.dev/github.com/docker/docker/client
The PR is ready for review and this will be in the next release.
The implementation that requires Compose V2 has been released today with version 1.19.0.
One problem emerged - it seems that Linux installations from the CLI lack the Compose V2 plugin, so you might need to install it manually.
https://docs.docker.com/compose/install/#scenario-two-install-the-compose-plugin
Docs on how to install the plugin: https://docs.docker.com/compose/install/linux/#install-using-the-repository