I am trying install the docker/compose-bin plugin on a Google Cloud VM with Container Optimized OS (https://hub.docker.com/r/docker/compose-bin/tags).
Has anybody achieved this?
I understand docker is running as a container and I think I have to install the plugin binary in the respective plugins folder inside the container. Am I in the right direction?
I am able to use the old docker-compose (https://hub.docker.com/r/docker/compose/tags) in a container using this script and alias:
#!/bin/bash
VERSION=${1:-1.27.4}
echo "* Add an alias for docker-compose to the shell configuration file ..."
echo alias docker-compose="'"'docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$PWD:$PWD" \
-w="$PWD" \
docker/compose:'"${VERSION}"''"'" >> ~/.bashrc
echo "* Pull container image for docker-compose ..."
docker pull docker/compose:${VERSION}
echo "* Done"
echo "* To use docker-compose, run 'source ~/.bashrc' or simply re-login"
taken from https://gist.github.com/kurokobo/25e41503eb060fee8d8bec1dd859eff3
But I would really like to use the new plugin.