Open needed ports on your docker host server.
ufw logging on
ufw allow 22/tcp
ufw limit 22/tcp
ufw allow 7951/tcp
ufw allow 8556/tcp
ufw allow 9051/tcp
ufw default deny incoming
ufw default allow outgoing
yes | ufw enable
docker pull limxtec/mec-rpc-server
docker run -p 7951:7951 -p 8556:8556 -p 9051:9051 --name mec-rpc-server -e WEB="${WEB}" -e BOOTSTRAP="${BOOTSTRAP}" -v /home/megacoin:/home/megacoin:rw -d limxtec/mec-rpc-server
docker ps
Please execute docker run
without option --entrypoint bash
before you execute this commands:
tail -f /home/megacoin/.megacoin/debug.log
docker ps
docker exec -it mec-rpc-server bash
# you are inside the mc-rpc-server container
root@container# supervisorctl status megacoind
root@container# cat /var/log/supervisor/supervisord.log
# Change to megacoin user
root@container# sudo su megacoin
megacoin@container# cat /home/megacoin/.megacoin/debug.log
megacoin@container# megacoin-cli getinfo
docker run -p 7951:7951 --name mec-rpc-server -e WEB="${WEB}" -e BOOTSTRAP="${BOOTSTRAP}" -v /home/megacoin:/home/megacoin:rw --entrypoint bash limxtec/mec-rpc-server
docker stop mec-rpc-server
docker rm mec-rpc-server