Sign inSign up

zouchao2010/insight-api

By zouchao2010

•Updated about 11 years ago

Image
1

1.3K

zouchao2010/insight-api repository overview

⁠insight-api

⁠build

docker build -t zouchao2010/insight-api .

⁠pull

docker pull zouchao2010/insight-api

⁠mkdir(创建DB目录)

mkdir -p /data/insight-api/db/testnet
mkdir -p /data/insight-api/db/livenet

⁠run(创建并运行一个容器,退出时删除容器)

docker run  --name insight-api \
            -h insight-api \
            -p 3000:3000 \
            -v /data/insight-api:/var/lib/insight-api/data \
            -e BITCOIND_HOST=x.x.x.x \
            -e BITCOIND_P2P_HOST=x.x.x.x \
            -e INSIGHT_NETWORK=livenet \
            -e BITCOIND_USER=user \
            -e BITCOIND_PASS=pass \
            -e INSIGHT_PUBLIC_PATH=public \
            -e ENABLE_HTTPS=false \
            -e INSIGHT_FORCE_RPC_SYNC=1 \
            -it --rm zouchao2010/insight-api
            

⁠run(创建并运行一个容器,以守护进程方式)

docker run  --name insight-api \
            -h insight-api \
            -p 3000:3000 \
            -v /data/insight-api:/var/lib/insight-api/data \
            -e BITCOIND_HOST=x.x.x.x \
            -e BITCOIND_P2P_HOST=x.x.x.x \
            -e INSIGHT_NETWORK=livenet \
            -e BITCOIND_USER=user \
            -e BITCOIND_PASS=pass \
            -e INSIGHT_PUBLIC_PATH=public \
            -e ENABLE_HTTPS=false \
            -e INSIGHT_FORCE_RPC_SYNC=1 \
            -dt zouchao2010/insight-api
            

⁠start|stop|restart(已存在的容器)

docker start|stop|restart insight-api

⁠exec(使用已运行的容器执行命令)

docker exec -it insight-api /bin/bash

Tag summary

Content type

Image

Digest

sha256:31d7e2776…

Size

331.6 MB

Last updated

about 11 years ago

docker pull zouchao2010/insight-api