Container Deployment #
INFINI Console supports container deployment.
Downloading an Image #
The images of INFINI Console are published at the official repository of Docker. The URL is as follows:
https://hub.docker.com/r/infinilabs/console
Use the following command to obtain the latest container image:
mkdir -p ~/infinilabs && cd ~/infinilabs
docker pull infinilabs/console:1.29.6
Verifying the Image #
After downloading the image locally, you will notice that the container image of INFINI Console is very small, with a size less than 30 MB. So, the downloading is very fast.
✗ docker images |grep "console" |grep "1.29.6"
REPOSITORY TAG IMAGE ID CREATED SIZE
infinilabs/console 1.29.6 8c27cd334e4c 47 minutes ago 26.4MB
Initialize Config Directory from Image #
docker run --rm -v $PWD/console:/work infinilabs/console:1.29.4-2108 cp -rf /config /work
Starting the Console #
Use the following command to start the INFINI Console container:
docker run -p 9000:9000 \
-v $PWD/console/config:/config \
-v $PWD/console/data:/data \
-v $PWD/console/logs:/log \
--name infini-console \
infinilabs/console:1.29.6
Docker Compose #
You can also use docker compose to manage container instances. Create one docker-compose.yml
file as follows:
cat <<EOF > docker-compose.yml
services:
infini-console:
image: infinilabs/console:1.29.6
ports:
- 9000:9000
volumes:
- ./console/config:/config
- ./console/data:/data
- ./console/logs:/log
container_name: "infini-console"
restart: unless-stopped
EOF
In the directory where the configuration file resides, run the following command to start INFINI Console.
➜ docker-compose up