Skip to content

Sample project to reproduce an issue with Docker for Mac where files in bind mounted dir are modified in-place using sed but hangs with 100% CPU

Notifications You must be signed in to change notification settings

davoustp/dockerformac-mountissue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

dockerformac-mountissue

Sample project to reproduce an issue with Docker for Mac where files in bind mounted dir are modified in-place using sed but hangs with 100% CPU

Build the image: docker build .

Run it without bind mounting: docker run --rm {imageId}

No issue.

Run it with bind mounting the directory where file edit will take place (in $HOME/tmp directory in this example): docker run --rm -v $HOME/tmp:/tmp {imageId}

The process never ends an one CPU core is maxed out.

About

Sample project to reproduce an issue with Docker for Mac where files in bind mounted dir are modified in-place using sed but hangs with 100% CPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages