A simple step-by-step guide on how to setup a local Oracle WebLogic Docker container, running version 12.2.1.3.
Create a account on container-registry.oracle.com
Login and navigate to Middleware, scroll to WebLogic and press "Continue" in the right most column to accept license terms. This is needed to be able to pull the docker image.
With the server up and running you should be able to reach the login interface on: https://127.0.0.1:9002/console/login/LoginForm.jsp
Adding Vulnerabilities
The images from Oracle's repo are (un)fortunatley patched for CVE-2017-3506 / CVE-2017-10271 / CVE-2019-2725 / CVE-2019-2729, both wls-wsat.war and wls9_async_response.war has been removed. Lucky for us Vulnhub have a few vulnerable WebLogic containers and in their version 10.3.6.0-2017 I was able to extract wls-wsat.war.
Deploy the vulnerable component by pressing Lock & Edit in the WebLogic Console.
Deployments > Install > Upload your file(s) > Deployment Archive: Browse > Next > Next > Finish
Complete the configuration change by pressing Activate Changes in the WebLogic Console.
Start service
Deployments > Control > Mark service > Start
Once your service is in Active State, browse: http://127.0.0.1:7001/wls-wsat/CoordinatorPortType
Troubleshooting
Pull Access Denied
If you get "Pull access denied" when trying to pull the image from container-registry.oracle.com there is probably one of two issues.
» docker pull container-registry.oracle.com/middleware/weblogic:12.2.1.3
Error response from daemon: pull access denied for container-registry.oracle.com/middleware/weblogic, repository does not exist or may require 'docker login': denied: requested access to the resource is denie
You've not logged in, run docker login container-registry.oracle.com
You've not accepted the license terms on https://container-registry.oracle.com.
Out of Memory (core dumped)
You're unable to build the container and get the memory error below.