Failed to solve: content digest sha256: not found

I’m just dploying a simple SpringBoot program to okteto,but every time I use oktoto up or use the web interface , at last step ,it will show error like this,but this docker-compose file works both in my PC and Server.



=> ERROR exporting to image                                                                                  3.3s
 => => exporting layers                                                                                       0.0s
 => => exporting manifest sha256:8a042b44e727f26ccab2d61eec212a497ce1713a2025956108798fc10caf60aa             0.1s
 => => exporting config sha256:2756c9560eebd785d8aca04e89fb211dd314610163296d21a3d7f3c3190a0691               0.1s
 => => pushing layers                                                                                         3.2s
------
 > exporting to image:
------
 x  Error building image 'registry.cloud.okteto.net/MY_NAME/blog-blog:okteto': build failed: failed to solve: content digest sha256:74ac377868f863e123f24c409f79709f7563fa464557c36a09cf6f85c8b92b7f: not found

Hi,

I have a few follow up questions to help troubleshoot this:

  1. where are you seeing this? In cloud.okteto.com?
  2. What command are you using to deploy your repository?
  3. Could you post the content of your docker-compose file?

Thanks!

1.I use in both cloud.okteto.com and okteto windows cli
2. okteto up , okteto up --reset
3 docker-compose file , this works in my PC and my own linux servere.

version: '3'
networks:
  blog:

services:
  blog:
    build:
      context: ./
      dockerfile: Dockerfile-buildself
    container_name: blog
    ports:
      - 8080:8080
    image: blog:latest
    networks:
      - blog

and also the docker file

FROM eclipse-temurin:17.0.6_10-jdk as build
ENV TZ=Asia/Shanghai
WORKDIR /app
COPY .mvn .mvn
COPY mvnw .
COPY pom.xml .
COPY src src
RUN chmod +x mvnw && ./mvnw package -DskipTests

FROM eclipse-temurin:17.0.6_10-jre
COPY --from=build /app/target/*.jar app.jar
EXPOSE 8080
CMD java -jar app.jar

at last , I just chaned the base image from eclipse-temurin:17.0.6_10-jre to openjdk:17-bullseye and everything works, I don’t know why. some result in internet show that it’s maybe a bug of docker buildkit

now ,it works ,thanks

1 Like