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

macos try to use docker-sync , got a problem at the final step #2543

Closed
sado0823 opened this issue Mar 30, 2020 · 11 comments
Closed

macos try to use docker-sync , got a problem at the final step #2543

sado0823 opened this issue Mar 30, 2020 · 11 comments
Labels

Comments

@sado0823
Copy link

i got this error ! how can i fix this ,please help!

ERROR: for laradock_workspace_1 Cannot create container for service workspace: invalid volume specification: '/Users/xxx/Documents/wwwroot:/var/www:nocopy': invalid mount config for type "bind": field VolumeOptions must not be specified

ERROR: for workspace Cannot create container for service workspace: invalid volume specification: '/Users/xxx/Documents/wwwroot:/var/www:nocopy': invalid mount config for type "bind": field VolumeOptions must not be specified
ERROR: Encountered errors while bringing up the project.

what should i do to this docker-compose.sync.yml file
version: '3'

services:

volumes:
applications-sync:
external:
name: "applications-docker-sync"

@adamberecz
Copy link

+1

@sado0823
Copy link
Author

+1

i finally solve this problem ,
use applications-sync to replace your mount directory ,
all this you can find in docker-sync document

@adamberecz
Copy link

+1

i finally solve this problem ,
use applications-sync to replace your mount directory ,
all this you can find in docker-sync document

Thanks! Can you tell what to modify exactly in which file?

@sado0823
Copy link
Author

+1

i finally solve this problem ,
use applications-sync to replace your mount directory ,
all this you can find in docker-sync document

Thanks! Can you tell what to modify exactly in which file?

docker-compose.sync.yml

@adamberecz
Copy link

adamberecz commented Mar 30, 2020

@sado0823 can you copy here your docker-compose.sync.yml file?

@adamberecz
Copy link

Does anyone has a solution for this?

@sado0823
Copy link
Author

sado0823 commented Mar 31, 2020 via email

@adamberecz
Copy link

You mean like this?

version: '3'

services:
  workspace:
    volumes:
      - applications-docker-sync:/var/www:nocopy
  php-fpm:
    volumes:
      - applications-docker-sync:/var/www:nocopy
  nginx:
    volumes:
      - applications-docker-sync:/var/www:nocopy

volumes:
  applications-sync:
    external:
      name: "applications-docker-sync"

@sado0823
Copy link
Author

sado0823 commented Mar 31, 2020 via email

@stale
Copy link

stale bot commented Jun 29, 2020

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.

@stale stale bot added the Stale label Jun 29, 2020
@stale
Copy link

stale bot commented Jul 20, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants