Skip to content

Commit

Permalink
change the docker workdir
Browse files Browse the repository at this point in the history
to $PROJECTROOT/.stack-docker

because `stack clean --full` tries to delete .stack-work/docker and it
can't because .stack-work/docker/_home is mounted by docker while it's
trying to delete it

resolves #2000
  • Loading branch information
dysinger committed Apr 6, 2016
1 parent 8458cbd commit 7e5ba38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Stack/Constants.hs
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ projectDockerSandboxDir :: (MonadReader env m, HasConfig env)
=> Path Abs Dir -- ^ Project root
-> m (Path Abs Dir) -- ^ Docker sandbox
projectDockerSandboxDir projectRoot = do
workDir <- getWorkDir
return $ projectRoot </> workDir </> $(mkRelDir "docker/")
return $ projectRoot </> $(mkRelDir ".stack-docker/")

-- | Image staging dir from project root.
imageStagingDir :: (MonadReader env m, HasConfig env, MonadThrow m)
Expand Down

0 comments on commit 7e5ba38

Please sign in to comment.