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

Projects
None yet
3 participants
@dysinger
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

This comment has been minimized.

Contributor

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

This comment has been minimized.

Contributor

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

This comment has been minimized.

Collaborator

mgsloan commented Mar 19, 2017

Fixed!

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