The docker-compose shell wrapper from 'run as a container' installation does not work on Mac as it is looking for the realpath command:
https://docs.docker.com/compose/install/#install-compose
sudo curl -L --fail https://github.com/docker/compose/releases/download/1.19.0/run.sh -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
COMPOSE_FILE=docker/rancher-docker-compose.yml /usr/local/bin/docker-compose up
Docker for Mac's native binary version of docker-compose works normally.
AFAIK readlink -f does the same job as realpath and is more widely available.
I used to use readlink a lot as a Linux systems engineer but the -f switch isn't available on Mac so it's not very portable:
readlink -f
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Ah, I guess that only stands for Linux then :/
You should be able to install the GNU version of realpath using brew install coreutils (you might have to declare a realpath=grealpath alias).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it had not recent activity during the stale period.