chrisleekr / yii2-angular-boilerplate

Yii2 REST API + Angular 12 Boilerplate (Frontend/Backend)

Home Page:https://yam-boilerplate.chrislee.kr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ngix won't start in docker-composer up -d

antoniojhun opened this issue · comments

When installing

everything else seemed to install fine after using docker-composer up -d

I encountered following error.

ERROR: for nginx Cannot start service nginx: b'Mounts denied: \r\nThe paths /Applications/MAMP/htdocs/yii2-ngx-boilerplate/nginx/image-files/etc/nginx/nginx.conf and /Applications/MAMP/htdocs/yii2-ngx-boilerplate/nginx\r\nare not shared from OS X and are not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'

Hi @primo1108

You need to share /Applications/MAMP/htdocs/yii2-ngx-boilerplate folder with docker as error message described.

You can configure shared paths from Docker -> Preferences... -> File Sharing.

Thanks @chrisleekr ,
It worked!