2. Check the Dockerfile, it should be that the number of the add command is too many, which leads to insufficient space. Reference URL: https://stackoverflow.com/questions/42784396/docker-e rror-error-processing-tar-fileexit-status-1-unexpected-eof . as shown in Figure 2
Figure 2
3. Cut /build/sync.sh to /build/c_files/usr/share/sync.sh. Cut /build/cachejssdk.sh to /build/c_files/usr/share/cachejssdk.sh. Cut /build/mp_verify_3rufnkmvef9eh3mj.txt to /build/c_files/mcloud/cmp_main/mp_verify_3rufnkmvef9eh3mj.txt. Cut /build/mp_verify_qximkc3go7fnqbzb.txt to /build/c_files/mcloud/cmp_main/mp_verify_qximkc3go7fnqbzb.txt. Edit Dockerfile, deleted 4 lines of add. as shown in Figure 3
Figure 3
4. Build again, the first build will report an error: unknown parent image ID sha256:. But the second build was successful. as shown in Figure 4
Figure 4
5. The mirror sizes before and after adjustment are: 4711 and 3882. Size reduced: 4711 – 3882 = 829. as shown in Figure 5
Figure 5
6. Another possible reason is that the Dockerfile has just been greatly modified. In this case, it is recommended to build several times. In the end, it can still be built successfully.
Leave a Reply