Deploying Applications > 4. Installing Docker Machine > Permission denied

Hello, I am trying to install docker machine on MacOS using

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

I am getting
“-bash: /usr/local/bin/docker-machine: Permission denied” .
Can someone help?

I resolved my own issue. I had used the github copy and it copied the entire code as well as the “$” which is already in the terminal. Newbie mistake. I copied just " curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine- uname -s - uname -m >/usr/local/bin/docker-machine &&
chmod +x /usr/local/bin/docker-machine" into the terminal and was able to download the docker machine.