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


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)


Ryan Sukale

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

You may also like...