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 in Docker by akhtar
• 10,580 points
20 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 by MD
• 23,050 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
• 9,940 points
957 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
• 53,080 points
783 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
• 51,850 points
1,636 views
+2 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
11,859 views
0 votes
1 answer
0 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
• 57,530 points
538 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 in Docker by MD
• 23,050 points
71 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 in Docker by MD
• 23,050 points
413 views