如何解决我认为代码有问题

时间:2019-04-01 11:37:53

标签: docker ipc geth

这有什么问题? 我在这里做错什么了吗?

docker stop blockchain-service
docker rm blockchain-service

docker run --name blockchain-service -d
 --restart always -v ~/ethereum/:/var/run/ethereum -e 
 GETH_IPC_PATH=/var/run/ethereum/ethereum-data.ipc -e 
 SQS_QUEUE_URL=https://sqs.us-east-1.amazonaws.com/407151891480/geth-mainnet-transactions -e 
 MASTER_WALLET_ADDRESS=0xMASTER_KEY --log-opt max-size=100m --log-opt max-file=3 -e 
SQS_PAYMENT_REQUESTS_QUEUE_URL=geth-mainnet-payment-requests -e 
 FAKE_USER_WALLET_PRIVATE_KEY=PRIVATE_KEY -e 
FAKE_USER_WALLET_PUBLIC_KEY=0xPUBLIC_KEY -e 
AWS_ACCESS_KEY_ID=ACCESS_KEY -e
AWS_SECRET_ACCESS_KEY=ACCESS_KEY  -e
 ENV=prod -e 
EXPECTED_TRANSACTION_AMOUNT=1000000000000000000000 -e 
DB_PORT=5432 -e 
DB_NAME=endordb -e
 DB_USER=endor_admin -e
 DB_HOST=MY_DB.us-east-1.rds.amazonaws.com -e
DB_PASSWORD=NO_PASSWORD -e 
SLACK_TOKEN=xoxp-14092887333-345643415810-495051526626-e
 2e61b404d4be9b0a7002ae01e25991a  407151891480.dkr.ecr.us-east-1.amazonaws.com/blockchain-service

1 个答案:

答案 0 :(得分:0)

也许在SLACK_TOKEN之后缺少env变量?

我建议将所有变量放入一个env文件中,然后使用“ --env-file