Failed to copy files Error processing tar file [How to Solve]

Learning content:

Dockerfile build image

[root@lms tomcat]# docker build -t mytomcat:0.1 .
Sending build context to Docker daemon  186.5MB
Step 1/15 : FROM centos
 ---> 300e315adb2f
Step 2/15 : MAINTAINER lms<[email protected]>
 ---> Running in 518a2a24a366
Removing intermediate container 518a2a24a366
 ---> 6e71bc54b0f9
Step 3/15 : COPY readme.txt /usr/local/tomcat/readme.txt
 ---> a2522531c257
Step 4/15 : ADD  jdk-8u161-linux-x64.tar.gz /usr/local/tomcat/
failed to copy files: Error processing tar file(exit status 1): unexpected EOF


the above error occurs. It is likely that an error occurred when uploading the tar file. Therefore, you can upload the file again!

Read More: