sudo: docker-compose: command not found

前端 未结 7 2238
梦谈多话
梦谈多话 2020-12-25 09:56

I am trying to run docker-compose using sudo.

I have both docker and docker-compose installed on Ubuntu 16.01.

Due to an error while trying to download compo

7条回答
  •  青春惊慌失措
    2020-12-25 10:08

    Or, just add your binary path into the PATH. At the end of the bashrc:

    ... 
    export PATH=$PATH:/home/user/.local/bin/
    

    save the file and run:

    source .bashrc
    

    and the command will work.

提交回复
热议问题