Article 50TE4 Unable to update inside the Container

Unable to update inside the Container

by
venugosr
from LinuxQuestions.org on (#50TE4)
Hi Team,

Please be informed that, I have installed CentOS 8 in my VMWare workstation.

After that I have installed the docker-ce without any issues.

Later i have pulled the httpd image.

Code:docker container run --publish 8080:80 --detach httpdNow entering inside the container and trying to update the same.

Code:docker container exec -it 7d7 bashCode:root@7d73e397628d:/usr/local/apache2# apt updateWhen i execute the above command and getting the attached error. Please help me how to resolve this.

Note:
I have tried the same in Ubuntu which I have installed in same VMWare, but i did not face any issues.

Please help me to solve the issue.
Attached Thumbnailsattachment.php?attachmentid=32796&stc=1& latest?d=yIl2AUoC8zA latest?i=eCgxQRTViS4:s5nm3VhWSMc:F7zBnMy latest?i=eCgxQRTViS4:s5nm3VhWSMc:V_sGLiP latest?d=qj6IDK7rITs latest?i=eCgxQRTViS4:s5nm3VhWSMc:gIN9vFweCgxQRTViS4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments