Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Not A Bug
-
Affects Version/s: 3.6.0
-
Fix Version/s: None
-
Component/s: Docker-Nexus
-
Labels:None
-
Environment:$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
$ docker info
Containers: 21
Running: 2
Paused: 0
Stopped: 19
Images: 3
Server Version: 17.09.0-ce
Storage Driver: overlay
Backing Filesystem: xfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: systemd
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: active
$ uname -a
3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo) $ docker info Containers: 21 Running: 2 Paused: 0 Stopped: 19 Images: 3 Server Version: 17.09.0-ce Storage Driver: overlay Backing Filesystem: xfs Supports d_type: true Logging Driver: json-file Cgroup Driver: systemd Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: active $ uname -a 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
Description
Hello,
I'm testing the official nexus image: sonatype/nexus3 in docker swarm mode
And setting the INSTALL4J_ADD_VM_PARAMS variable causes the container to fail on startup with the following message:
nexus.1.84g7qkug7daa@001.example.com | Error: Could not find or load main class "-Xms1200m nexus.1.84g7qkug7daa@001.example.com | Error: Could not find or load main class "-Xms1200m nexus.1.84g7qkug7daa@001.example.com | Error: Could not find or load main class "-Xms1200m
...
Steps to reproduce.
$ cat nexus3.yml version: "3" services: nexus: image: sonatype/nexus3 volumes: - "nexus-data:/nexus-data" ports: - "8081:8081" environment: - INSTALL4J_ADD_VM_PARAMS="-Xms1200m -Xmx1200m -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs" volumes: nexus-data: {} $ sudo docker stack deploy -c nexus3.yml nexus3 $ sudo docker service logs -f nexus3 nexus.1.84g7qkug7daa@001.example.com | Error: Could not find or load main class "-Xms1200
The above image works fine if no INSTALL4J_ADD_VM_PARAMS variable is defined.
Is docker swarm unsupported?