Skip to content

amaccis/docker-dict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dictd

This image uses dictd, a client/server software that supports DICT protocol.

The DICT Protocol

As per RFC 2229, the Dictionary Server Protocol (DICT) is a TCP transaction based query/response protocol that allows a client to access dictionary definitions from a set of natural language dictionary databases. For more details see dict.org.

How to use this image

Providing other dictionaries

$ docker run --name dictd -v /path/config/file.conf:/etc/dictd.conf -v /path/dictionaries/directory:/usr/lib/dict -d amaccis/dict

Using docker-compose

Here is an example using docker-compose.yml:

services:
  dictd: &dict-base 
    image: amaccis/dict
  dict:
    <<: *dict-base
    entrypoint: "dict"
    depends_on:
      - dictd

Once the dictd container is up&running, you can use the client to perform queries:

$ docker-compose run --rm dict -h <dictd_container_ip> hacker