roadmap
roadmap copied to clipboard
No such image: sha256
#Background When I use Docker to automatically package image push notifications, the error message is as follows
09:43:03: 正在执行 ':api:bootBuildImage -PdebugMode=true'…
> Configure project :
> 💡 当前分支: test
> 📦 hygeia 构建版本: hygeia_20250826_test
> 📦 api 构建版本: hygeia_20250826_test
> 📦 model 构建版本: hygeia_20250826_test
> 📦 service 构建版本: hygeia_20250826_test
> 💡 gradle版本:8.2
> 🐞 构建测试版镜像,
> Task :model:compileJava UP-TO-DATE
> Task :service:compileJava UP-TO-DATE
> Task :api:compileJava UP-TO-DATE
> Task :api:processResources UP-TO-DATE
> Task :api:classes UP-TO-DATE
> Task :api:resolveMainClassName UP-TO-DATE
> Task :model:processResources NO-SOURCE
> Task :model:classes UP-TO-DATE
> Task :model:jar UP-TO-DATE
> Task :service:processResources UP-TO-DATE
> Task :service:classes UP-TO-DATE
> Task :service:jar UP-TO-DATE
> Task :api:bootJar UP-TO-DATE
> Task :api:bootBuildImage
> Building image 'xxxxx/hygeia/api:hygeia_20250826_test'
> Pulling builder image 'docker.io/paketobuildpacks/builder:base' ..................................................
> Pulled builder image 'paketobuildpacks/builder@sha256:17ea21162ba8c7717d3ead3ee3836a368aced7f02f2e59658e52029bd6d149e7'
> Pulling run image 'docker.io/paketobuildpacks/run:base-cnb' ..................................................
> Pulled run image 'paketobuildpacks/run@sha256:1af9935d8987fd52b2266d288200c9482d1dd5529860bbf5bc2d248de1cb1a38'
> Executing lifecycle version v0.16.5
> Using build cache volume 'pack-cache-40e47386612d.build'
> Running creator
> [creator] ===> ANALYZING
> [creator] Restoring data for SBOM from previous image
> [creator] ===> DETECTING
> [creator] 7 of 26 buildpacks participating
> [creator] paketo-buildpacks/ca-certificates 3.6.3
> [creator] paketo-buildpacks/bellsoft-liberica 10.2.6
> [creator] paketo-buildpacks/syft 1.32.1
> [creator] paketo-buildpacks/executable-jar 6.7.4
> [creator] paketo-buildpacks/dist-zip 5.6.4
> [creator] paketo-buildpacks/spring-boot 5.26.1
> [creator] paketo-buildpacks/environment-variables 4.5.3
> [creator] ===> RESTORING
> [creator] Restoring metadata for "paketo-buildpacks/ca-certificates:helper" from app image
> [creator] Restoring metadata for "paketo-buildpacks/bellsoft-liberica:helper" from app image
> [creator] Restoring metadata for "paketo-buildpacks/bellsoft-liberica:java-security-properties" from app image
> [creator] Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jre" from app image
> [creator] Restoring metadata for "paketo-buildpacks/spring-boot:web-application-type" from app image
> [creator] Restoring metadata for "paketo-buildpacks/environment-variables:environment-variables" from app image
> [creator] ===> BUILDING
> [creator]
> [creator] Paketo Buildpack for CA Certificates 3.6.3
> [creator] https://github.com/paketo-buildpacks/ca-certificates
> [creator] Launch Helper: Reusing cached layer
> [creator]
> [creator] Paketo Buildpack for BellSoft Liberica 10.2.6
> [creator] https://github.com/paketo-buildpacks/bellsoft-liberica
> [creator] Build Configuration:
> [creator] $BP_JVM_JLINK_ARGS --no-man-pages --no-header-files --strip-debug --compress=1 configure custom link arguments (--output must be omitted)
> [creator] $BP_JVM_JLINK_ENABLED false enables running jlink tool to generate custom JRE
> [creator] $BP_JVM_TYPE JRE the JVM type - JDK or JRE
> [creator] $BP_JVM_VERSION 17 the Java version
> [creator] Launch Configuration:
> [creator] $BPL_DEBUG_ENABLED false enables Java remote debugging support
> [creator] $BPL_DEBUG_PORT 8000 configure the remote debugging port
> [creator] $BPL_DEBUG_SUSPEND false configure whether to suspend execution until a debugger has attached
> [creator] $BPL_HEAP_DUMP_PATH write heap dumps on error to this path
> [creator] $BPL_JAVA_NMT_ENABLED true enables Java Native Memory Tracking (NMT)
> [creator] $BPL_JAVA_NMT_LEVEL summary configure level of NMT, summary or detail
> [creator] $BPL_JFR_ARGS configure custom Java Flight Recording (JFR) arguments
> [creator] $BPL_JFR_ENABLED false enables Java Flight Recording (JFR)
> [creator] $BPL_JMX_ENABLED false enables Java Management Extensions (JMX)
> [creator] $BPL_JMX_PORT 5000 configure the JMX port
> [creator] $BPL_JVM_HEAD_ROOM 0 the headroom in memory calculation
> [creator] $BPL_JVM_LOADED_CLASS_COUNT 35% of classes the number of loaded classes in memory calculation
> [creator] $BPL_JVM_THREAD_COUNT 250 the number of threads in memory calculation
> [creator] $JAVA_TOOL_OPTIONS the JVM launch flags
> [creator] Using Java version 17 extracted from MANIFEST.MF
> [creator] BellSoft Liberica JRE 17.0.7: Reusing cached layer
> [creator] Launch Helper: Reusing cached layer
> [creator] Java Security Properties: Reusing cached layer
> [creator]
> [creator] Paketo Buildpack for Syft 1.32.1
> [creator] https://github.com/paketo-buildpacks/syft
> [creator] Downloading from https://github.com/anchore/syft/releases/download/v0.84.0/syft_0.84.0_linux_amd64.tar.gz
> [creator] Verifying checksum
> [creator] Writing env.build/SYFT_CHECK_FOR_APP_UPDATE.default
> [creator]
> [creator] Paketo Buildpack for Executable JAR 6.7.4
> [creator] https://github.com/paketo-buildpacks/executable-jar
> [creator] Class Path: Contributing to layer
> [creator] Writing env/CLASSPATH.delim
> [creator] Writing env/CLASSPATH.prepend
> [creator] Process types:
> [creator] executable-jar: java org.springframework.boot.loader.JarLauncher (direct)
> [creator] task: java org.springframework.boot.loader.JarLauncher (direct)
> [creator] web: java org.springframework.boot.loader.JarLauncher (direct)
> [creator]
> [creator] Paketo Buildpack for Spring Boot 5.26.1
> [creator] https://github.com/paketo-buildpacks/spring-boot
> [creator] Build Configuration:
> [creator] $BP_SPRING_CLOUD_BINDINGS_DISABLED true whether to contribute Spring Boot cloud bindings support
> [creator] Launch Configuration:
> [creator] $BPL_SPRING_CLOUD_BINDINGS_DISABLED false whether to auto-configure Spring Boot environment properties from bindings
> [creator] $BPL_SPRING_CLOUD_BINDINGS_ENABLED true Deprecated - whether to auto-configure Spring Boot environment properties from bindings
> [creator] Creating slices from layers index
> [creator] dependencies (195.6 MB)
> [creator] spring-boot-loader (269.4 KB)
> [creator] snapshot-dependencies (0.0 B)
> [creator] application (4.4 MB)
> [creator] Web Application Type: Reusing cached layer
> [creator] 4 application slices
> [creator] Image labels:
> [creator] org.opencontainers.image.title
> [creator] org.opencontainers.image.version
> [creator] org.springframework.boot.version
> [creator] Warning: BOM table is deprecated in this buildpack api version, though it remains supported for backwards compatibility. Buildpack authors should write BOM information to <layer>.sbom.<ext>, launch.sbom.<ext>, or build.sbom.<ext>.
> [creator]
> [creator] Paketo Buildpack for Environment Variables 4.5.3
> [creator] https://github.com/paketo-buildpacks/environment-variables
> [creator] Launch Configuration:
> [creator] $BPE_<NAME> prepend value to $NAME, delimiting with OS path list separator
> [creator] $BPE_APPEND_<NAME> append value to $NAME
> [creator] $BPE_DEFAULT_<NAME> set default value for $NAME
> [creator] $BPE_DELIM_<NAME> set delimeter to use when appending or prepending to $NAME
> [creator] $BPE_OVERRIDE_<NAME> set $NAME to value
> [creator] $BPE_PREPEND_<NAME> prepend value to $NAME
> [creator] Environment Variables: Reusing cached layer
> [creator] ===> EXPORTING
> [creator] Reusing layer 'paketo-buildpacks/ca-certificates:helper'
> [creator] Reusing layer 'paketo-buildpacks/bellsoft-liberica:helper'
> [creator] Reusing layer 'paketo-buildpacks/bellsoft-liberica:java-security-properties'
> [creator] Reusing layer 'paketo-buildpacks/bellsoft-liberica:jre'
> [creator] Reusing layer 'paketo-buildpacks/executable-jar:classpath'
> [creator] Reusing layer 'paketo-buildpacks/spring-boot:web-application-type'
> [creator] Reusing layer 'paketo-buildpacks/environment-variables:environment-variables'
> [creator] Adding layer 'buildpacksio/lifecycle:launch.sbom'
> [creator] Reusing 5/5 app layer(s)
> [creator] Reusing layer 'buildpacksio/lifecycle:launcher'
> [creator] Reusing layer 'buildpacksio/lifecycle:config'
> [creator] Reusing layer 'buildpacksio/lifecycle:process-types'
> [creator] Adding label 'io.buildpacks.lifecycle.metadata'
> [creator] Adding label 'io.buildpacks.build.metadata'
> [creator] Adding label 'io.buildpacks.project.metadata'
> [creator] Adding label 'org.opencontainers.image.title'
> [creator] Adding label 'org.opencontainers.image.version'
> [creator] Adding label 'org.springframework.boot.version'
> [creator] Setting default process type 'web'
> [creator] Saving xxxxx/hygeia/api:hygeia_20250826_test...
> [creator] *** Images (1af9935d8987):
> [creator] xxxxx/hygeia/api:hygeia_20250826_test - saving image "xxxxx/hygeia/api:hygeia_20250826_test": Error response from daemon: No such image: sha256:e70cb7b1ee394d9ceddb7deaa2258f6e8086ff83ed995b6a578a70e5cf4971e0
> [creator] ERROR: failed to export: failed to write image to the following tags: [xxxxx/hygeia/api:hygeia_20250826_test: saving image "xxxxx/hygeia/api:hygeia_20250826_test": Error response from daemon: No such image: sha256:e70cb7b1ee394d9ceddb7deaa2258f6e8086ff83ed995b6a578a70e5cf4971e0]
> Task :api:bootBuildImage FAILED
> 10 actionable tasks: 1 executed, 9 up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':api:bootBuildImage'.
> Builder lifecycle 'creator' failed with status code 62
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org/.
BUILD FAILED in 1m 10s
09:44:14: 执行完成 ':api:bootBuildImage -PdebugMode=true'。
#Process details It's just an automated build, packaging, and push process, but there's an error message during the push. I've investigated various reasons, but I still don't know why, and none of my colleagues have encountered this issue before. It's also the first time I've encountered it. It works on Windows, but not on Mac. However, other colleagues on Mac can. I request assistance in troubleshooting