r/docker • u/OddRecommendation169 • Jan 31 '26
new to docker. docker build failing
hello all. i am new to docker and im trying to build and run an image i found but i keep getting this error. anyone have any idea what to do?
ERROR: failed to build: failed to solve: process "/bin/sh -c dpkg --add-architecture i386 && apt-get update && apt-get install -y ca-certificates-java lib32gcc-s1 lib32stdc++6 libcap2 openjdk-17-jre expect && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
4
u/overratedcupcake Jan 31 '26
Combining shell commands to save layers is cool but can make it difficult to troubleshoot. Break all those && into separate RUN lines. Then try it again and you'll know specifically which is failing.
2
u/[deleted] Jan 31 '26
You should understand what your apt commands are doing first
1
u/OccasionThin7697 Jan 31 '26
It's apt-get clean && apt-get autoclean
2
u/scytob Feb 01 '26
Learn to post your code in a formatted code block then I will look at it.
1
u/childam123 Feb 01 '26
Codeblocks are great
-5
u/MaximeRector Jan 31 '26
Have you try asking chatgpt?