delitescere/docker-zulu

Unrecognized option: -jar

Closed this issue · 1 comments

Hey Delitescere

I've created my own dockerfile based on your image, trying to get a java application to run inside a container.

https://github.com/nextized/docker-ts3musicbot/issues/1

I'm trying to run my jarfile with the cmd command:

CMD ["java", "-Xms50m", "-Xmx50m", "-XX:+DisableAttachMechanism", "-jar TS3MusicBotLauncher.jar", "-account $account", "-port $PORT", "-webif-pw $adminpassword", "-webif-pw-user $userpassword", "-noquery"]

Values with $ are mostly passed as build argument. $PORT is passed from ENV.

Now I get the following error when I run the container:

Unrecognized option: -jar TS3MusicBotLauncher.jar
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Can you help me with this error?

The issue can be closed since I'm using a new base image now.