Public | Automated Build

Last pushed: a year ago
Short Description
bitcoind
Full Description

bitcoind

build

docker build -t zouchao2010/bitcoind:0.13.1 .

pull

docker pull zouchao2010/bitcoind:0.13.1

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

docker run  --name bitcoind-0.13.1 \
            -h bitcoind-0131 \
            -p 18332:18332 \
            -p 18333:18333 \
            -p 18334:18334 \
            -v /data/bitcoind-0.13.1:/var/lib/bitcoind \
            -e TESTNET=1 \
            -it --rm zouchao2010/bitcoind:0.13.1

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

docker run  --name bitcoind-0.13.1 \
            --restart=always \
            -m 2048m \
            -h bitcoind-0131 \
            -p 18332:18332 \
            -p 18333:18333 \
            -p 18334:18334 \
            -v /data/bitcoind-0.13.1:/var/lib/bitcoind \
            -e TESTNET=1 \
            -dt zouchao2010/bitcoind:0.13.1

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

docker start|stop|restart bitcoind-0.13.1

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

docker exec -it bitcoind-0.13.1 /bin/bash

dependency

docker run  --name redis \
            -h redis \
            -p 6379:6379 \
            -v /data/redis:/data \
            -dt redis
Docker Pull Command
Owner
zouchao2010
Source Repository

Comments (0)