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 Thumbnails


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 Thumbnails