first run docker image prune to clean up all dangling images
if this didn't help you might need to check this answer
Docker error : no space left on device
运行或者 build 的时候添加下面的选项,引起该问题的原因可能是 用户在 build 的时候指定的 platform 是linux/amd64。
- docker build --platform linux/amd64 -t nginx:latest .
- docker run --platform linux/amd64 nginx:latest
