WebLogic 12.1.3 generic installation
To start the Administration Server container:
docker run -it -e SERVER_TYPE=AdminServer --name AdminServer --expose=7001 -p 7001:7001 radudobrinescu/wls12c:1.0 bash -c '/oracle/fmwhome/wlst_custom/startWLS12c.sh && /bin/bash'
To create and start a new Managed Server container:
docker run -it -e SERVER_TYPE=ManagedServer -e ADMIN_HOSTNAME=<IP_ADDRESS> -p 7101:7101 --name ManagedServer1 radudobrinescu/wls12c:1.0 bash -c '/oracle/fmwhome/wlst_custom/startWLS12c.sh && /bin/bash'
Note: If the below error comes up while starting the containers, there should be two dashes before "name" parameter in the startup command, i.e. "- - name"
Unable to find image '–name:latest' locally
FATA Invalid repository name (–name), only [a-z0-9-_.] are allowed
Please download Tag 2.0 should you need root access within the container, with password "root"
More about the Dockerfile and custom WLST scripts at http://oraclemiddlewareblog.com
Not sure why you are getting that error. What is the docker engine version you are using? What is your docker host OS? Can you ssh into the container and get the WebLogic server log along with your environment variables from both host and container?
When I pull 'radudobrinescu/wls12c:2.0' and run it with command
docker run -it -e SERVER_TYPE=AdminServer --name AdminServer --expose=7001 -p 7001:7001 radudobrinescu/wls12c:2.0 bash -c '/oracle/fmwhome/wlst_custom/startWLS12c.sh && /bin/bash'
weblogic will output follow error:
No stack trace available.
Problem invoking WLST - Traceback (innermost last):
File "/oracle/fmwhome/wlst_custom/startWLS12c_admin.jy", line 14, in ?
File "<iostream>", line 363, in startServer
File "<iostream>", line 552, in raiseWLSTException
WLSTException: Error occurred while performing startServer : Error starting the
server. WLST could not start a new JVM for the server process, this might happen
if you have provided illegal jvmArgs or the JVM picked up any illegal JVM_OPTIO
NS from your path. Please look for the correct error in your logs and try again.
Is there anyway to resolve this problem?
There is no password for root in the Oracle Linux docker image. Since this WebLogic image is built from that, it does not include a password for root either, and a separate "oracle" user has been created to run the oracle services for security reasons.
Version 2.0 of the image containes a root password also, should you need it. You can use "root/root" from within the container.
Thank you for providing this image. Is there any way you can provide the root user password?