This image uses dictd, a client/server software that supports 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.
$ docker run --name dictd -v /path/config/file.conf:/etc/dictd.conf -v /path/dictionaries/directory:/usr/lib/dict -d amaccis/dict
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