Execute in docker
apt-get update
Report an error
jenkins@0d71811f7c01:~/python3/Python-3.6.8$ apt-get update
Reading package lists... Done
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
the reason
Insufficient permissions
Solution
jenkins@0d71811f7c01:~/python3/Python-3.6.8$ exit
exit
[root@izbp1jfqk9lif6vh3vclhkz ~]# docker exec -u 0 -it jenkins /bin/bash
root@0d71811f7c01:/# apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]