By jino jose
yum -y install package_name is not working…i just pulled centos image directly from docker hub and run it with following command: docker -i -t run centos it entered a new shell prompt …ls command is working properly but when i tries to install a package it is not working…can anyone help me??
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I had a similar issue recently. I noticed that the containers were not able to do any DNS lookups so yum was failing to resolve the repos, to fix that I only had to restart docker:
systemctl restart docker
After the restart, it all started working as normal.
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.