有點坑爹,在使用 alpine 鏡像的時候,明明在裏面安裝了docker-compose,/usr/local/bin/docker-compose也是存在的,卻報html
sh: docker-compose: not found
google了一翻,找到了解決方法: https://acdcjunior.github.io/sh-docker-compose-not-found.htmlpython
apk update apk upgrade apk add python python-dev py-pip build-base curl curl -L https://github.com/docker/compose/releases/download/1.24.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose pip install docker-compose
Have fun with Docker!git