Unable to deploy the war in docker web-logic container

I am trying to deploy the war(any war file, later on, we can deploy our p6war) using the Docker WebLogic. But I am facing some issues in to deployment. So I am giving a detailed description of what I did to run WebLogic and deployment process.

Created a Docker image for Oracle-12.2.1.2.0 image created successfully and running also on https://localhost:9002/console.

Now I want to deploy my war in this container, using following commands inside the container for that -

java weblogic.Deployer -adminurl t3://localhost:9002 -username weblogic - 
password weblogic1 -deploy -name Demo-Web -targets AdminServer -source 
D:\Demo-Web.war

got issue like

Error: Could not find or load main class weblogic.Deployer

same issue coming outside the container also, so i added -cp $CLASSPATH

java -cp $CLASSPATH weblogic.Deployer -adminurl t3://localhost:9002 - 
username weblogic -password weblogic1 -deploy -name Demo-Web -targets 
AdminServer -source D:\Demo-Web.war

old issue got resolved but following issues started coming -

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

I used following link to get help.

https://docs.oracle.com/cd/E13222_01/wls/docs90/deployment/wldeployer.html#1003708

I am using windows machine as host to deploy and creating images.

Please show the Dockerfile you are using to build your image.

#Copyright © 2014-2018 Oracle and/or its affiliates. All rights reserved.

#Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.

ORACLE DOCKERFILES PROJECT

--------------------------

This is the Dockerfile for WebLogic 12.2.1.2 Quick Install Distro

REQUIRED FILES TO BUILD THIS IMAGE

----------------------------------

(1) fmw_12.2.1.2.0_wls_quick_Disk1_1of1.zip

Download the Developer Quick installer from http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html

(2) server-jre-8uXX-linux-x64.tar.gz

Download from http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html

HOW TO BUILD THIS IMAGE

-----------------------

Put all downloaded files in the same directory as this Dockerfile

Run:

$ docker build -t oracle/weblogic:12.2.1.2-developer .

IMPORTANT

---------

The resulting image of this Dockerfile contains a WLS Empty Domain.

Pull base image

From the Oracle Registry

-------------------------

FROM store/oracle/serverjre:8

Maintainer

----------

MAINTAINER Monica Riccelli monica.riccelli@oracle.com

Common environment variables required for this build (do NOT change)

--------------------------------------------------------------------

ENV ORACLE_HOME=/u01/oracle
USER_MEM_ARGS="-Djava.security.egd=file:/dev/./urandom"
SCRIPT_FILE=/u01/oracle/createAndStartEmptyDomain.sh
PATH=$PATH:/usr/java/default/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin

Setup filesystem and oracle user

Adjust file permissions, go to /u01 as user ‘oracle’ to proceed with WLS installation

------------------------------------------------------------

RUN mkdir -p /u01 &&
chmod a+xr /u01 &&
useradd -b /u01 -d /u01/oracle -m -s /bin/bash oracle

Copy scripts

#-------------
COPY container-scripts/createAndStartEmptyDomain.sh container-scripts/create-wls-domain.py /u01/oracle/

Domain and Server environment variables

------------------------------------------------------------

ENV DOMAIN_NAME="{DOMAIN_NAME:-base_domain}" \ DOMAIN_HOME=/u01/oracle/user_projects/domains/{DOMAIN_NAME:-base_domain}
ADMIN_LISTEN_PORT="{ADMIN_LISTEN_PORT:-7001}" \ ADMIN_NAME="{ADMIN_NAME:-AdminServer}"
DEBUG_FLAG=true
PRODUCTION_MODE=dev
ADMINISTRATION_PORT_ENABLED="{ADMINISTRATION_PORT_ENABLED:-true}" \ ADMINISTRATION_PORT="{ADMINISTRATION_PORT:-9002}"

Environment variables required for this build (do NOT change)

-------------------------------------------------------------

ENV FMW_PKG=fmw_12.2.1.2.0_wls_quick_Disk1_1of1.zip
FMW_JAR=fmw_12.2.1.2.0_wls_quick.jar

Copy packages

-------------

COPY $FMW_PKG install.file oraInst.loc /u01/
RUN chown oracle:oracle -R /u01 &&
chmod +xr $SCRIPT_FILE

Install

------------------------------------------------------------

USER oracle
RUN cd /u01 && $JAVA_HOME/bin/jar xf /u01/$FMW_PKG && cd - &&
$JAVA_HOME/bin/java -jar /u01/$FMW_JAR -invPtrLoc /u01/oraInst.loc -jreLoc $JAVA_HOME -ignoreSysPrereqs -force -novalidation ORACLE_HOME=$ORACLE_HOME &&
rm /u01/$FMW_JAR /u01/$FMW_PKG /u01/oraInst.loc /u01/install.file

WORKDIR ${ORACLE_HOME}

Define default command to start script.

CMD ["/u01/oracle/createAndStartEmptyDomain.sh"]

Run the command and get command help to see the syntax.

java -cp $CLASSPATH weblogic.Deployer -help