2017-01-01 197 views
-1

我試圖安裝碼頭機器guide無法安裝docker - 權限被拒絕?

$ curl -L https://github.com/docker/machine/releases/download/v0.8.2/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine && \ 
> chmod +x /usr/local/bin/docker-machine 

錯誤:

bash: /usr/local/bin/docker-machine: Permission denied

爲什麼?如何解決這個問題?

我在Xubuntu 16.04上。

回答

2

這在issue 652

要麼你CHOWN該文件夾

sudo chown -R $(whoami) /usr/local/bin 

或(更好)在this PR

Note: If you get a "Permission denied" error, your /usr/local/bin directory probably isn't writable and you'll need to install Compose as the superuser.
Run sudo -i , then the two commands above, then exit .

討論,因爲