Build issue

39 views
Skip to first unread message

siba nanda

unread,
Jul 17, 2025, 4:53:32 AMJul 17
to sonicproject
Hi,

I am facing below issue when building sonic image in my personal laptop
Kindly help me how can I proceed further
 => [internal] load build definition from Dockerfile.cleanup                                                                                                                       0.0s
 => => transferring dockerfile: 312B                                                                                                                                               0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 9)                                                                                                     0.0s
 => WARN: ConsistentInstructionCasing: Command 'From' should match the case of the command majority (uppercase) (line 5)                                                           0.0s
 => ERROR [internal] load metadata for docker.io/library/sonic-slave-buster:0c0ea8083c7                                                                                            1.6s
 => [auth] library/sonic-slave-buster:pull token for registry-1.docker.io                                                                                                          0.0s
------
 > [internal] load metadata for docker.io/library/sonic-slave-buster:0c0ea8083c7:
------

 2 warnings found (use docker --debug to expand):
 - ConsistentInstructionCasing: Command 'From' should match the case of the command majority (uppercase) (line 5)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 9)
Dockerfile.cleanup:6
--------------------
   4 |     # Copy the cache data to host
   5 |     From scratch as output
   6 | >>> COPY --from=sonic-slave-buster:0c0ea8083c7 /cache.tgz cache.tgz
   7 |    
   8 |     # Clean up the cache data
--------------------
ERROR: failed to solve: sonic-slave-buster:0c0ea8083c7: failed to resolve source metadata for docker.io/library/sonic-slave-buster:0c0ea8083c7: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
[+] Building 1.2s (3/3) FINISHED                                                                                                                                         docker:default
 => [internal] load build definition from Dockerfile.cleanup                                                                                                                       0.0s
 => => transferring dockerfile: 312B                                                                                                                                               0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 9)                                                                                                     0.0s
 => WARN: ConsistentInstructionCasing: Command 'From' should match the case of the command majority (uppercase) (line 5)                                                           0.0s
 => ERROR [internal] load metadata for docker.io/library/sonic-slave-buster:0c0ea8083c7                                                                                            1.2s
 => [auth] library/sonic-slave-buster:pull token for registry-1.docker.io                                                                                                          0.0s
------
 > [internal] load metadata for docker.io/library/sonic-slave-buster:0c0ea8083c7:
------

 2 warnings found (use docker --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 9)
 - ConsistentInstructionCasing: Command 'From' should match the case of the command majority (uppercase) (line 5)
Dockerfile.cleanup:9
--------------------
   7 |    
   8 |     # Clean up the cache data
   9 | >>> FROM sonic-slave-buster:0c0ea8083c7 as final
  10 |     RUN rm /cache.tgz
  11 |    
--------------------
ERROR: failed to solve: sonic-slave-buster:0c0ea8083c7: failed to resolve source metadata for docker.io/library/sonic-slave-buster:0c0ea8083c7: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Error response from daemon: No such image: tmp-sonic-slave-buster:0c0ea8083c7
Error response from daemon: No such container: sonic-slave-buster-0c0ea8083c7
sync: error opening 'sonic-slave-buster/vcache/cache.base64': No such file or directory
Error response from daemon: No such container: sonic-slave-buster-0c0ea8083c7
make[1]: *** [Makefile.work:613: buster] Error 1
make[1]: Leaving directory '/home/sdhupal/SIBA/sonic-buildimage'
make: *** [Makefile:53: target/sonic-vs.img.gz] Error 2
sdhupal@sdhupal-Vivobook-Go-E1404FA-E1404FA:~/SIBA/sonic-

Tao Minjia

unread,
Jul 17, 2025, 6:36:57 PMJul 17
to sonicproject
I encountered the same error, any clues?
Reply all
Reply to author
Forward
0 new messages