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 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 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

@angerman angerman commented Apr 23, 2016

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 added a commit that referenced this issue Mar 19, 2017
@mgsloan
Copy link
Contributor

@mgsloan 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants