Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack clean --full tries to delete .stack-work/docker/_home which is mounted on docker enabled projects #2010

Closed
dysinger opened this issue Apr 7, 2016 · 3 comments

Comments

@dysinger
Copy link
Contributor

dysinger commented Apr 7, 2016

Create a docker enabled project (builds the project in a docker container)

run stack clean --full and you'll see it break with an error

@dysinger
Copy link
Contributor Author

dysinger commented Apr 7, 2016

FYI: .stack-work/docker/_home is the $HOME directory of the stack user inside the container. We can't delete that because when you are inside the container this directory is mounted and in use.

The solution would be to do the stack clean --full outside of the docker container (not inside).

@angerman
Copy link
Contributor

Ran into this as well:

$ stack --docker --docker-image img clean --full
~/p/s/cd/.stack-work/docker/_home: removeDirectoryRecursive: resource busy (Device or resource busy)

@mgsloan
Copy link
Contributor

mgsloan commented Mar 19, 2017

Fixed!

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

No branches or pull requests

3 participants