error while using docker-sync with laradock

Viewed 13

I am using laradock on mac and it is very slow

so i have used the docker-sync feature of laradock to try to improve it.

https://laradock.io/documentation/#improve-speed-on-macos workaround B.1: using the built in d4m-nfs integration

it says set APP_CODE_CONTAINER_FLAG to APP_CODE_CONTAINER_FLAG=:nocopy in the .env file

but if i do that i get the following error 'ERROR: for workspace Cannot create container for service workspace: invalid volume specification: '/path-to-project:/var/www:nocopy': invalid mount config for type "bind": field VolumeOptions must not be specified'

ive also tried APP_CODE_CONTAINER_FLAG=:'nocopy' but that gives me this error ERROR: for laradock_workspace_1 Cannot create container for service workspace: invalid mode: nocopy`

Leaving APP_CODE_CONTAINER_FLAG unset seams to work ( the containers start without error and the site works) but i am not sure if im getting any speed benefit and the stand alone docker-sync documentation says that setting :nocopy is very important

https://docker-sync.readthedocs.io/en/latest/getting-started/configuration.html#why-nocopy-is-important

What should i do

0 Answers
Related