JinaD Server

JinaD docker image is published on Docker Hub and follows the standard image versioning used in Jina.

Run

To deploy JinaD, SSH into a remote instance (e.g.- ec2 instance) and run the below command.

  1. docker run --add-host host.docker.internal:host-gateway \
  2. -v /var/run/docker.sock:/var/run/docker.sock \
  3. -v /tmp/jinad:/tmp/jinad \
  4. -p 8000:8000 \
  5. --name jinad \
  6. -d jinaai/jina:master-daemon

Note

You can change the port via the -p argument. Following code assumes that HOST is the public IP of the above instance and PORT is as passed in the docker run cpmmand.

Important

JinaD should always be deployed as a docker container. Simply starting the server using jinad command would not work.

API docs