Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Not able to ADD a file into WLS Docker container at RUN time

user10905585Oct 3 2018 — edited Oct 25 2018

My problem is on Docker running on Centos7

When I run a Docker container based on Oracle Container Registry image container-registry.oracle.com/middleware/weblogic:latest things work fine.

When I create a custom image using Dockerfile which looks liek this:

FROM container-registry.oracle.com/middleware/weblogic:latest

ADD TransportBean-war.war /u01/oracle/user_projects/domains/base_domain/autodeploy

ADD TransportBean.earĀ  /u01/oracle/user_projects/domains/base_domain/autodeploy

ADD transportbean-conf.jar /u01/oracle/user_projects/domains/base_domain/lib

The starting of container fails on the ADD statements due to lack of permissions as this error shows:

com.oracle.cie.domain.script.ScriptException: 60308: Domain location not writable.

60308: The domain location does not have write permission.

60308: Correct permissions or select different domain location.

How can I write into the "Domain location"

Comments
Post Details
Added on Oct 3 2018
2 comments
1,027 views