Comments (7)
I haven't seen this issue before. I tagged an OEL image locally with the same name on my machine but don't get any errors.
For example:
[laptop]:bin $ docker tag oraclelinux:7-slim oel7:7-slim
[laptop]:bin $ imagetool create --tag derek:2 --fromImage oel7:7-slim
[INFO ] Temporary directory used for docker build context: /Users/xxxx/wlsimgbuilder_temp1134269872710003830
[INFO ] docker cmd = docker build --force-rm=true --no-cache --tag derek:2 --build-arg WLS_PKG=fmw_12.2.1.3.0_wls_Disk1_1of1.zip --build-arg JAVA_PKG=jdk-8u202-linux-x64.tar.gz /Users/xxxx/wlsimgbuilder_temp1134269872710003830
Sending build context to Docker daemon 1.033GB
Step 1/35 : FROM oel7:7-slim as OS_UPDATE
---> 90e39322df71
My only guess is that the docker version you are running has a bug or doesn't support something in this Dockerfile.
My docker client version is 19.03.1 on Mac, and 18.09.7 on Linux. Your version is 1.x which seems way off.
from weblogic-image-tool.
Well I also run a successful build on 19.03.1 on Mac see previous issue that I reported.
This error message appear when I moved to RedHat EL7 with Docker version docker-1.13.1-96 which is the packaged version distributed with RHEL7.
I will see if I can get RedHat Docker CE or RedHat Docker EE installed to try to solve this error which is reported in many cases to "attempting to try to build a multi layered image" in a docker version that does not support it.
from weblogic-image-tool.
You can run with the command line option "--cleanup false" to save the Docker build folder for image tool. The tmp directory that the tool creates with the installers, Dockerfile, etc. will not be deleted at the end of the run. Then, you can go to the wlsimgbuilder_tempXXXX folder and view the Dockerfile or even rerun the docker build command manually. Once you see the message "Sending build context to Docker daemon", imagetool has initiated the Docker build command and everything except for cleanup is running inside of Docker.
from weblogic-image-tool.
I believe I have found the cause for the error.
Similar error reported:
spotify/docker-maven-plugin#264
Also note that multistage builds (FROM xxx as yyy) are supported from Docker 17.05 onwards.
Docker docs:
https://docs.docker.com/develop/develop-images/multistage-build/
Multi-stage builds are a new feature requiring Docker 17.05 or higher on the daemon and client.
Imagetool uses multistage builds here:
Create_Image.mustache
...
FROM {{baseImage}} as OS_UPDATE
...
FROM OS_UPDATE as WLS_BUILD
...
So it seems that I need to upgrade to a RHEL7 docker version that is the equivalent of higher than Docker 17.05.
from weblogic-image-tool.
Would it be possible to add functionality to have Imagetool to work with out multistage docker builds in order to support RHEL7 docker-1.13.1-96 ?
Ie a second Create_Image.mustache file that does not use multistage builds and have a command line option to choose between them and keep the current multistage build as the default.
from weblogic-image-tool.
While it would be possible to support older Docker versions, the demand for this feature would need to be significantly higher before it would be worth the added support cost. Writing the new mustache template would be relatively easy, but the cost of extra testing and keeping the templates in sync is not justified at this time.
from weblogic-image-tool.
Unable to find functionality matrix showing RHEL7 docker-1.13.1-96 and the Docker CE / EE version (YY-MM) for comparison.
from weblogic-image-tool.
Related Issues (20)
- Update using 1.9.14 and 1.9.15 fails on unknown AruProduct values (even when not patching in said update)
- Inspect image shows java version from Open JDK version instead of java from JAVA_HOME HOT 1
- Remove docker daemon dependency for option '--dryRun' HOT 1
- INSPECT fails with ArrayIndexOutOfBoundsException
- doc update: https://oracle.github.io/weblogic-image-tool/userguide/tools/create-image/ --skipCleanup
- Weblogic 14c SPB 33452377 cannot be applied HOT 3
- doc updates: provide detailed tool download commands
- fix: Image does not include the newest patches for glibc HOT 5
- Image tool fails to build the image due to the error "Unable to locate the startup/shiphome directory" running the WLS installer HOT 15
- User would like to pass ENV variables to WIT for the docker build command HOT 1
- While creating Image using WDT discover yaml file, getting createDomain failed to set Password: invalid password. HOT 2
- REBASE fails with COPY requires at least two arguments
- User wants to copy symlinks alongwith their targets using --additionalBuildFiles HOT 6
- Image creation with --latestPSU and --recommendedPatches fails due to patch conflict HOT 2
- error: Get "https://ghcr.io/v2/ while creating weblogic image HOT 4
- Allow alphanumeric release version in the patch filename such as pNNNNNN_12214230103ADFBP12214230103_Generic.zip HOT 1
- Azure ACR build support HOT 2
- [SEVERE ] For input string: "220419ProactiveBP" HOT 1
- a new version of opatch is available 13.9.4.2.12 -> 13.9.4.2.13 HOT 1
- inspect returns no information HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weblogic-image-tool.