oracle / docker-images

Official source of container configurations, images, and examples for Oracle products and projects
https://developer.oracle.com/use-cases/#containers
Universal Permissive License v1.0
6.5k stars 5.41k forks source link

Container from official image fails to start #2023

Open ILyaCyclone opened 3 years ago

ILyaCyclone commented 3 years ago

I think the issue is pretty much described with copy from command console:

λ docker run -p 7201:7001 -p 9002:9002 -v /d/docker/weblogic:/u01/oracle/properties --name weblogic-12.2.1.3 store/oracle/weblogic:12.2.1.3
Domain Home is:  /u01/oracle/user_projects/domains/

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

domain_name                 : [base_domain]
admin_listen_port           : [7001]
domain_path                 : [/u01/oracle/user_projects/domains/base_domain]
production_mode             : [prod]
admin name                  : [AdminServer]
administration_port_enabled : [true]
administration_port         : [9002]

Exiting WebLogic Scripting Tool.

/u01/oracle/createAndStartEmptyDomain.sh: line 66: /u01/oracle/user_projects/domains//bin/setDomainEnv.sh: No such file or directory
/u01/oracle/createAndStartEmptyDomain.sh: line 70: /u01/oracle/user_projects/domains//startWebLogic.sh: No such file or directory
touch: cannot touch /u01/oracle/user_projects/domains//servers/AdminServer/logs/AdminServer.log: No such file or directory
tail: cannot open /u01/oracle/user_projects/domains//servers/AdminServer/logs/AdminServer.log for reading: No such file or directory
tail: no files remaining

I see there is double slash in paths in createAndStartEmptyDomain.sh file: user_projects/domains//bin/. Which leads to error, I guess.

Win 7, Docker Toolbox (which is Docker in VirtualBox)

rjeberhard commented 3 years ago

I'll see if I can find a Windows machine on which to reproduce this. Note: I see that you are running with the image store/oracle/weblogic:12.2.1.3; Oracle is no longer publishing images to the Docker Store. You should instead be building the images yourself using the Dockerfile here in this project, pulling from the Oracle Container Registry (container-registry.oracle.com/middleware/weblogic:12.2.1.3), or building the images using the WebLogic Image Tool (https://github.com/oracle/weblogic-image-tool).

KaMing811 commented 4 months ago

i am facing this problem too. how to fix it?