Docker Installation Problem Mac Book M1 Silicon


#1

When following the installation steps I got stuck at the following command:

Installation and running NRP using Docker containers — HBP Neurorobotics Platform 3.2.0 documentation

Before I already executed the following command:

(base) paolo@Paolos-MacBook-Pro downloads % echo “127.0.0.1 host.docker.internal” | sudo tee -a /etc/hosts

127.0.0.1 host.docker.internal

(base) paolo@Paolos-MacBook-Pro ~ % chmod 755 nrp_installer.sh

./nrp_installer.sh install latest

grep: /proc/version: No such file or directory

./nrp_installer.sh: line 461: declare: -A: invalid option

declare: usage: declare [-afFirtx] [-p] [name[=value] …]

The file nrp_installer.sh is in my home folder where I am currently at. How can I fix this error? I already tried with sudo, but it still did not work.
The problem must have to do with the ports to host. I am new to using terminal or the command line interface so I am not sure how to resolve this error. I have not been successful in finding an answer on Google.

Kind regards,
Paolo


#2

Hi Paolo,

could you edit line 453 like so:

from
if grep -qEi "(Microsoft|WSL)" /proc/version; then
to
if [[ -n "$IS_WSL" || -n "$WSL_DISTRO_NAME" ]]; then

Please let me know if that solves your issue.

Cheers,

Ugo


#3

I still get this error:
(base) paolo@Paolos-MacBook-Pro ~ % chmod 755 nrp_installer.sh

./nrp_installer.sh install latest

./nrp_installer.sh: line 461: declare: -A: invalid option

declare: usage: declare [-afFirtx] [-p] [name[=value] …]


#4

It seems that /usr/bin/bash points to an old bash version:

Please, edit line 1:

from
#!/usr/bin/bash
to
#!/usr/bin/env bash