Manish Sakariya
Manish Sakariya

Reputation: 482

Not able to mount jenkins volume to Windows folder.Empty folder in container when mounting a host directory

Empty folder in container when mounting a host directory.

docker run -p 8080:8080 -p 5000:5000 -v C:/Users/***/Desktop/ABC:/var/jenkins_home jenkins/jenkins:lts

I'm using above command to mount jenkins_home directory to local directory but it silently failing.

Upvotes: 0

Views: 221

Answers (2)

Ahmed Nabil
Ahmed Nabil

Reputation: 19036

Make sure under Docker Settings > Resources > FILE SHARING,
The host path exists in this list, else you should add it

In your example, you should check C:/Users/***/Desktop/ABC

Upvotes: 0

ashish agarwal
ashish agarwal

Reputation: 21

Go to Control Panel\Network and Internet\Network and Sharing Center\Advanced sharing settings And Turn on sharing so anyone with network access can read and write files in Public folder. it will solve your problem.

Upvotes: 2

Related Questions