从码头文档中,我可以将From行设置为使用摘要
FROM [--platform=<platform>] <image>[@<digest>] [AS <name>]但是试着写这样的东西
FROM ubuntu@sha256:9c152418e380 as ubuntu-22.04 似乎不起作用了,我犯了个错误
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse stage name "ubuntu@sha256:9c152418e380": invalid reference format我遗漏了什么吗?
发布于 2022-03-09 03:27:13
您需要将完整摘要传递给FROM,而不仅仅是大多数命令中显示的前几个字符:
FROM ubuntu@sha256:9c152418e380c6e6dd7e19567bb6762b67e22b1d0612e4f5074bda6e6040c64a as ubuntu-22.04https://stackoverflow.com/questions/71391031
复制相似问题