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.
docker run --add-host host.docker.internal:host-gateway \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp/jinad:/tmp/jinad \
-p 8000:8000 \
--name jinad \
-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
Interactive swagger docs (works once JinaD is started)