docker-json-server icon indicating copy to clipboard operation
docker-json-server copied to clipboard

Update README.md

Open vkim opened this issue 9 years ago • 1 comments

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

vkim avatar Sep 15 '15 07:09 vkim

:+1: Also got this problem

RoniSapirstein avatar Nov 05 '15 14:11 RoniSapirstein