Can't install docker – Permission denied?
I’m trying to install docker-machine following the guide.
$ 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
Why? How can resolve this?
I’m on Xubuntu 16.04.
One Solution collect form web for “Can't install docker – Permission denied?”
This is discussed in issue 652
Either you chown that folder
sudo chown -R $(whoami) /usr/local/bin
Or (better), as in this PR
Note: If you get a “Permission denied” error, your
/usr/local/bindirectory probably isn’t writable and you’ll need to install Compose as the superuser.
sudo -i, then the two commands above, then