Docker swarm doesn't work

Docker version 19.03.2, build 6a30dfc on
18.04.1-Ubuntu

The error in the shell after following instructions here: https://nupic.docs.numenta.org/1.0.0/guides/swarming/running.html

root@6e9c90fece4b:/home/docker# {NUPIC}/scripts/run_swarm.py {NUPIC}/examples/swarm/simple/search_def.json --maxWorkers=4
/usr/local/src/nupic/scripts/run_swarm.py: line 23: $’ @file run_swarm.py\nThis script is the command-line interface for running swarms in nupic.’: command not found
/usr/local/src/nupic/scripts/run_swarm.py: line 25: import: command not found
/usr/local/src/nupic/scripts/run_swarm.py: line 26: import: command not found
/usr/local/src/nupic/scripts/run_swarm.py: line 27: import: command not found
/usr/local/src/nupic/scripts/run_swarm.py: line 28: import: command not found
/usr/local/src/nupic/scripts/run_swarm.py: line 31: syntax error near unexpected token from' /usr/local/src/nupic/scripts/run_swarm.py: line 31: from nupic.swarming import permutations_runner’

Are you using https://hub.docker.com/r/numenta/nupic?

This error looks suspicious. What command did you use to invoke the docker image?

I see you also created a ticket so let’s have this conversation there: