# Docker swarm doesn't work

**URL:** <https://discourse.numenta.org/t/docker-swarm-doesnt-work/6877>\
**Category:** NuPIC\
**Created:** [December 3, 2019, 12:03pm UTC](https://discourse.numenta.org/t/docker-swarm-doesnt-work/6877 "2019-12-03T12:03:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yxs8495](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/yxs8495/32/4695_2.png) [@yxs8495](https://discourse.numenta.org/u/yxs8495)\
**Post date:** [December 3, 2019, 12:03pm UTC](https://discourse.numenta.org/t/docker-swarm-doesnt-work/6877/1 "2019-12-03T12:03:48Z")

</div>

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](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](https://github.com/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’

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [December 3, 2019, 2:48pm UTC](https://discourse.numenta.org/t/docker-swarm-doesnt-work/6877/2 "2019-12-03T14:48:02Z")

</div>

Are you using [https://hub.docker.com/r/numenta/nupic](https://hub.docker.com/r/numenta/nupic)?

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

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [December 3, 2019, 2:53pm UTC](https://discourse.numenta.org/t/docker-swarm-doesnt-work/6877/3 "2019-12-03T14:53:44Z")

</div>

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

> <https://github.com/numenta/nupic/issues/3884>
>
> 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: $'...

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [December 3, 2019, 2:53pm UTC](https://discourse.numenta.org/t/docker-swarm-doesnt-work/6877/4 "2019-12-03T14:53:49Z")

</div>


