Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

(BUG) Cannot run tool using docker backend due to mount issue #138

Closed
logicminds opened this issue Feb 22, 2022 · 4 comments
Closed

(BUG) Cannot run tool using docker backend due to mount issue #138

logicminds opened this issue Feb 22, 2022 · 4 comments

Comments

@logicminds
Copy link

Describe the bug

prm exec puppetlabs/ra10ke
8:34PM INF Creating new image. Please wait...
8:34PM INF Code path: /home/user1
8:34PM INF Cache path: /home/user1/.pdk/prm/cache
8:34PM INF Additional Args: []
8:34PM ERR Error executing tool puppetlabs/ra10ke: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/user1/.pdk/prm/cache
Error: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /home/user1/.pdk/prm/cache


**To Reproduce**
On a virgin prm system, install prm and run a tool.

**Expected behavior**
Error not returned


@binford2k
Copy link

Which containerization backend are you using? I'm having that problem with Colima but not Docker Desktop.

@logicminds
Copy link
Author

I was using docker. This was just an issue of the prm tool not creating the cache directory and expecting it.

@logicminds
Copy link
Author

The prm tool needs to create the cache directory for the user before running. Otherwise it will not exist until the user creates it manually.

petergmurphy pushed a commit that referenced this issue May 4, 2022
petergmurphy pushed a commit that referenced this issue May 4, 2022
petergmurphy pushed a commit that referenced this issue May 4, 2022
In this commit code has been added to ensure that the default cache
directory location always exists.
chelnak added a commit that referenced this issue May 4, 2022
@petergmurphy
Copy link
Contributor

Hi logicminds,

This bug should be fixed with the latest release of PRM, 0.2.0. Feel free to give it a try!

Peter

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants