Deploying in a Docker container
The DataCap project provides the qianmoq/datacap Docker image that includes the DataCap server and a default configuration. The Docker image is published to Docker Hub and can be used with the Docker runtime, among several others.
Running the container¶
To run DataCap in Docker, you must have the Docker engine installed on your machine. You can download Docker from the Docker website, or use the packaging system of your operating systems.
Use the docker command to create a container from the qianmoq/datacap image. Assign it the datacap name, to make it easier to reference it later. Run it in the background, and map the default DataCap port, which is
9096, from inside the container to port
9096 on your workstation.
docker run -d -p 9909:9096 --name datacap qianmoq/datacap
Without specifying the container image tag, it defaults to
latest, but a number of any released DataCap version can be used, for example
docker ps to see all the containers running in the background.
-> % docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2096fba19e2a datacap:latest "sh ./bin/debug.sh" 5 days ago Up 14 seconds 0.0.0.0:9909->9096/tcp datacap
You can stop and start the container, using the
docker stop datacap and
docker start datacap commands. To fully remove the stopped container, run
docker rm datacap.
Created: November 20, 2023