简体   繁体   中英

docker-compose command not available for mac

I installed docker with the instructions here, downloading from docker-hub

https://docs.docker.com/docker-for-mac/install/

But when I run docker-compose I get this error

pyenv: docker-compose: command not found

The `docker-compose' command exists in these Python versions:
3.6.5/envs/myenv

Also, docker-compose is available under /Users

which docker-compose
/Users/<username>/.pyenv/shims/docker-compose

In this link says, docker-compose for mac need not be installed explicitly as it is part of docker for desktop mac.

https://docs.docker.com/compose/install/

Is something wrong with my installation?

I ran into the same issue on macOS today. Turned out that you need to run the installed app once , it does some additional downloading and setup. That setup includes setting up your path variables.

docker-compose 是一个实用程序,现在是 docker 中的一个参数,所以它现在不是docker-compose up ,而是docker compose up

如果您从官方网站安装 docker,那么 docker-compose 将与 mac 一起提供,因此需要升级并且文档在那里。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM