Running fenicsproject.sh script on Mac OS

Hello,

I run into some issues when trying to execute the fenicsproject script on Mac OS. I followed the instructions from here to download and execute the script.

When executing:

% fenicsproject run

I first ran into the following error:

/usr/local/bin/fenicsproject: line 82: docker-machine: command not found

I changed line 44 in the script to

OS="Docker"

Now the above command works fine.

However, when I try to create a project, with the intention to eventually use a jupyter notebook:

% fenicsproject create test
% fenicsproject start test

I run into the following error:

Error response from daemon: Ports are not available: /forwards/expose/port returned unexpected status: 500
Error: failed to start containers: test

I checked with lsof -i -n -P that the range 3000-4000 of ports is not in use. I have also tried a bunch of other ranges without success. Any idea on how to resolve this?

The output of uname -srv is:

Darwin 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64

Thanks a lot,