How to create local yum inside docker

0 votes

Hi Guys,

My yum is not working inside docker container. Can I create my local yum inside docker?

Thank You

Apr 6, 2020 in Docker by akhtar
• 38,210 points
173 views

1 answer to this question.

0 votes

Hi@akhtar,

You can create local yum inside docker. For that you have to mount your base yum with your container.

$ docker run -it --name container -v base_yum_file:/dvd centos:latest

Now create local yum inside docker.

$ vi /etc/yum.repos.d/docker.repo
[tag]
baseurl=file:///dvd
gpgcheck=0 

Hope this will help you.

Thank You

answered Apr 6, 2020 by MD
• 95,300 points

Related Questions In Docker

0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 10,550 points
2,151 views
0 votes
2 answers

How to execute docker exec commande inside a docker container ?

You need to get inside the container ...READ MORE

answered Aug 13, 2019 in Docker by Sirajul
• 59,090 points
1,651 views
0 votes
1 answer

How to get docker-compose to always re-create containers from fresh images?

The containers are getting recreated to preserve ...READ MORE

answered Jul 27, 2018 in Docker by Kalgi
• 52,370 points
3,697 views
+3 votes
4 answers

How to install packages inside a docker Ubuntu image?

Execute the update and the install command ...READ MORE

answered Apr 24, 2019 in Docker by Vismaya
27,357 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,140 points
1,332 views
0 votes
1 answer

How to create our own docker image?

Hi@akhtar, There are two ways to create docker ...READ MORE

answered Mar 11, 2020 in Docker by MD
• 95,300 points
206 views
0 votes
1 answer

How to run firefox inside docker container?

Hi@akhtar, Generally, if you run firefox inside docker ...READ MORE

answered Apr 16, 2020 in Docker by MD
• 95,300 points
13,101 views