# Docker run -p 8000:8000 rasa/duckling

**URL:** <https://forum.rasa.com/t/docker-run-p-8000-8000-rasa-duckling/43288>\
**Category:** Rasa Open Source\
**Created:** [May 6, 2021, 4:19pm UTC](https://forum.rasa.com/t/docker-run-p-8000-8000-rasa-duckling/43288 "2021-05-06T16:19:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joggerjoel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/joggerjoel/32/14583_2.png) [@joggerjoel](https://forum.rasa.com/u/joggerjoel)\
**Post date:** [May 6, 2021, 4:19pm UTC](https://forum.rasa.com/t/docker-run-p-8000-8000-rasa-duckling/43288/1 "2021-05-06T16:19:31Z")

</div>

```auto
docker run -p 8000:8000 rasa/duckling

```

```auto
> docker ps
IMAGE: rasa/duckling
COMMAND: "duckling-example-exe"
STATUS: Up 28 hours

```

```auto
> htop
I have literally 60 little processes in my container:
duckling-example.exe -p 8000 -no-access-log --no-error-log

Anyt thoughts why this is the case. 
VIRT: 1.0T
CPU%: 0.0
MEM: 0.1
Command: duckling-example.exe -p 8000 -no-access-log --no-error-log

```

By default, `htop` lists each thread of a process separately, while `ps` doesn’t. To turn off the display of threads, press `H` , or use the “Setup / Display options” menu, “Hide userland threads”. This puts the following line in your `~/.htoprc` or `~/.config/htop/htoprc` (you can alternatively put it there manually):

Just curious whats going on with all the threads in the container?

Thanks.

---

<div class="post-metadata">

**Author:** ![yennycheung](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yennycheung/32/12470_2.png) [@yennycheung](https://forum.rasa.com/u/yennycheung)\
**Post date:** [May 12, 2021, 8:47am UTC](https://forum.rasa.com/t/docker-run-p-8000-8000-rasa-duckling/43288/2 "2021-05-12T08:47:28Z")

</div>

From @virtualroot: I see `ghc_worker` threads. I think it has to do with [GHC](https://www.haskell.org/ghc/), the default compiler for Haskell; and how it handles [concurrency](https://hackage.haskell.org/package/base-4.15.0.0/docs/Control-Concurrent.html#g:11).

```auto
  PID TTY STAT TIME COMMAND
    1 ? Ssl 0:00 duckling-example-exe -p 8000 --no-access-log --no-error-log
   18 pts/0 Ss 0:00 /bin/bash
  746 pts/0 R+ 0:00 ps x
root@36166220878a:/# ps -T -p 1
  PID SPID TTY TIME CMD
    1 1 ? 00:00:00 duckling-exampl
    1 8 ? 00:00:00 ghc_worker
    1 9 ? 00:00:00 ghc_worker
    1 10 ? 00:00:00 ghc_worker
    1 11 ? 00:00:00 ghc_worker
    1 12 ? 00:00:00 ghc_worker
    1 14 ? 00:00:00 ghc_worker
    1 13 ? 00:00:00 ghc_worker
    1 15 ? 00:00:00 ghc_worker
    1 16 ? 00:00:00 ghc_worker
    1 17 ? 00:00:00 ghc_worker
    1 735 ? 00:00:00 ghc_worker

```

I would say it is natural to see it grow and shrink depending on the workload.Not something we want to do but it is possible to disable this feature by removing the `-threaded` flag at compilation time from [duckling.cabal](https://github.com/RasaHQ/duckling/blob/master/duckling.cabal#L1149).
