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

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

The issue is that your current user does not have the permission to write to the /usr/local/bin/ directory.

The simplest way to solve this problem is to either give your current user write permissions

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

OR

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

Reference

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...