# Confused about using duckling

**URL:** <https://forum.rasa.com/t/confused-about-using-duckling/21371>\
**Category:** Rasa Open Source\
**Created:** [November 17, 2019, 10:49pm UTC](https://forum.rasa.com/t/confused-about-using-duckling/21371 "2019-11-17T22:49:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![irwinschmitt](https://avatars.discourse-cdn.com/v4/letter/i/ce7236/32.png) [@irwinschmitt](https://forum.rasa.com/u/irwinschmitt)\
**Post date:** [November 17, 2019, 10:49pm UTC](https://forum.rasa.com/t/confused-about-using-duckling/21371/1 "2019-11-17T22:49:12Z")

</div>

Hi, I fall into a project that uses rasa, docker and docker-compose.

I don’t know how to correctly deal with that, but I have to use Duckling to extract time.

The problem is that I can’t install Duckling.

This is what I’ve already tried:

Added in _config.yml_

```
  - name: "DucklingHTTPExtractor"
    url: http://localhost:8000
    dimensions: ["time"]
    locale: "pt_PT"

```

Added in docker-compose.yml

```
duckling:
        image: rasa/duckling:latest
        ports:
         - "8000:8000"

```

and _depends\_on_:

```
  bot:
    container_name: genericBot
    image: lappis/bot:boilerplate
    build:
      context: .
      dockerfile: ./docker/bot.Dockerfile
    restart: unless-stopped
    ports:
      - 5004:5004
    depends_on:
      - actions
      - duckling
    env_file:
      - env/bot-telegram.env

```

And I always get some errors:

> ERROR: for chatbot-bino\_duckling\_1 Cannot start service duckling: b’driver failed programming external connectivity on endpoint chatbot-bino\_duckling\_1…

or

```
Could not parse timestamp...
root - Instead current UTC time will be passed to duckling. Error: invalid literal for int() with base 10: ...

rasa.nlu.extractors.duckling_http_extractor - Failed to connect to duckling http server. Make sure the duckling server is running/healthy/not stale and the proper host and port are set in the configuration. More information on how to run the server can be found on github: https://github.com/facebook/duckling#quickstart Error: HTTPConnectionPool(host='localhost', port=8005): Max retries exceeded with url: /parse (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f63b2f7b5c0>: Failed to establish a new connection: [Errno 111] Connection refused',))

```

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![matthiask](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@matthiask](https://forum.rasa.com/u/matthiask)\
**Post date:** [November 18, 2019, 6:13am UTC](https://forum.rasa.com/t/confused-about-using-duckling/21371/2 "2019-11-18T06:13:36Z")

</div>

Try using this as Duckling url: `http://duckling:8000` . Localhost do not work with docker because localhost just works inside the Docker container.
