Docker Community Forums

Share and learn in the Docker community.

Error -bash: /usr/local/bin/docker-machine: Permission denied while checking the machine version

Hi
I´m running Docker on Raspbian Buster Lite and I try to install the docker-machine following these steps . After executing

$ base=https://github.com/docker/machine/releases/download/v0.16.0 &&
  curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine &&
  sudo mv /tmp/docker-machine /usr/local/bin/docker-machine

I wanted to check the instalation with:

$ docker-machine version

but I receive this error message with and without sudo :

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

So I followed the next steps in order to Install the bash completion scripts, but I didn’t find the ~/.bashrc file. Instead, I added '[\u@\h \W$(__docker_machine_ps1)]\$ ' to the file /etc/bash.bashrc but the docker-machine doesn’t seem to be installed yet.

What am I missing?

I´m not an expert and I appreciate any help!