how to install a package inside a fresh centos image pulled inside a docker??

September 28, 2018 368 views
Docker CentOS

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??

Be the first one to answer this question.