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

Update README.md #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update README.md #2

wants to merge 1 commit into from

Conversation

vkim
Copy link

@vkim vkim commented Sep 15, 2015

Docker does not allow to "move" file as part of the rename procedure as it shown in exception for what ever reasons json-server needs to do it.
It throws exception:

/usr/local/lib/node_modules/json-server/node_modules/lowdb/src/disk.js:14
      if (err) throw err
               ^
Error: EBUSY: resource busy or locked, rename '/data/.~db.json' -> '/data/db.json'
    at Error (native)

However when docker mounts directory from a host to container then any files within directory can be "moved".

Docker does not allow to "move" file as part of the rename procedure.  For what ever reasons json-server needs to do it. 
It  throws exception:
/usr/local/lib/node_modules/json-server/node_modules/lowdb/src/disk.js:14
      if (err) throw err
               ^
Error: EBUSY: resource busy or locked, rename '/data/.~db.json' -> '/data/db.json'
    at Error (native)

However when docker mounts directory from host to the container then any files within directory can be "moved".
@RoniSapirstein
Copy link

👍 Also got this problem

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

Successfully merging this pull request may close these issues.

2 participants