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

I got this error when try­ing to install docker on my ubuntu using the curl command.

The issue is that your cur­rent user does not have the per­mis­sion to write to the /usr/local/bin/ directory.

The sim­plest way to solve this prob­lem is to either give your cur­rent user write permissions

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

OR

to run the curl com­mand as sudo(which may not such a good thing because then you would always need to run your docker com­mands via sudo which can be a pain in the ass)

Ref­er­ence

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...