Error using JAVA_OPS in Docker
See original GitHub issueI have trouble running the latest Eclair from Docker (acinq/eclair:release-0.4.1). Issue is using the JAVA_OPTS parameters. v3.3 release seems to work. Using the official docker images.
It throws the following error: /bin/sh: 1: -Xmx256m: not found. But when I remove that line it throws an error on the next line withing the JAVA_OPS block.
This is when I try to run the Docker image with docker-compose up.
This is the part of the docker-compose:
eclair:
image: acinq/eclair:release-0.4.1
container_name: eclair
stop_signal: SIGINT
env_file: .env
environment:
PUBLIC_HOST: ${BW_ROOTURL}
JAVA_OPTS: |
-Xmx256m
-Declair.printToConsole
-Declair.headless
-Declair.chain=${BITCOIN_NETWORK}
-Declair.server.binding-ip=0.0.0.0
-Declair.server.public-ips.0=${BW_ROOTURL}
-Declair.server.port=9735
-Declair.api.enabled=true
-Declair.api.binding-ip=0.0.0.0
-Declair.api.port=${LIGHTNING_PORT}
-Declair.node-alias=test
-Declair.api.password=${LIGHTNING_PASS}
-Declair.bitcoind.host=bitcoind
-Declair.bitcoind.rpcport=${BITCOIN_RPCPORT}
-Declair.bitcoind.rpcuser=${BITCOIN_RPCUSERNAME}
-Declair.bitcoind.rpcpassword=${BITCOIN_RPCPASSWORD}
-Declair.bitcoind.zmqblock=tcp://bitcoind:28332
-Declair.bitcoind.zmqtx=tcp://bitcoind:28333
expose:
- "9735" # server port
- "${LIGHTNING_PORT}" # api port
volumes:
- "bitcoin_datadir:/etc/bitcoin"
- "eclair_datadir:/data"
depends_on:
- bitcoind
restart: unless-stopped
@araspitzu Is this related to your changes to the Dockerfile?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Docker and JAVA_OPTS - Veracode
While adjusting some environment variables recently, I came across an odd issue with Docker, Spring Boot and JAVA_OPTS.
Read more >JAVA_OPTS/CATALINA_OPTS parameters not working with ...
I ended up like this: When I build the image, I specify in the Dockerfile: ENTRYPOINT exec java $JAVA_OPTS -jar /target/test.jar.
Read more >Error passing JAVA_OPTS with spaces and quotes · Issue #213
I should use something like docker run -v ~/jenkins_home:/var/jenkins_home -p 80:8080 -p 50000:50000 -d --restart=always --env JAVA_OPTS=- ...
Read more >Passing JAVA_OPTS to JMV in running container
I have multiple micro-services running inside containers, and I need to pass few JAVA_OPTS environment variables to one of these containers ...
Read more >Install New Relic Java agent for Docker
We recommend that you set this argument with the JAVA_OPTS environment variable. The value of that argument must contain the location where you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@t-bast I’m on it
Great, thanks @dkrm0!