maxx3r
(Maxxer)
March 24, 2022, 9:03pm
1
Hi.
After reading this blog post I immediately upgraded to 4.6 and to .1 later on. Unfortunately, if I enable Enable VirtioFS accelerated directory sharing I’m unable to use my containers anymore. It seems related to one only, but I cannot figure out what’s wrong.
My docker-compose.yaml
relevant section:
docker-mysql:
container_name: ${APP_NAME}_db
image: 'mariadb:10.3'
restart: unless-stopped
expose:
- '3306'
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_PORT=${MYSQL_PORT}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- ./mysql/data:/var/lib/mysql:cached
- ./mysql/conf/my.cnf:/etc/mysql/my.cnf:ro,delegated
- ./mysql-files:/var/lib/mysql-files
networks:
docker-network:
When compose tries to start this container:
allog_mailhog | 2022/03/24 20:55:21 Using in-memory storage
allog_mailhog | 2022/03/24 20:55:21 [SMTP] Binding to address: 0.0.0.0:1025
allog_mailhog | 2022/03/24 20:55:21 Serving under http://0.0.0.0:8025/
allog_mailhog | [HTTP] Binding to address: 0.0.0.0:8025
allog_mailhog | Creating API v1 with WebPath:
allog_mailhog | Creating API v2 with WebPath:
allog_adminer | [Thu Mar 24 20:55:21 2022] PHP 7.4.28 Development Server (http://[::]:8080) started
allog_db | 2022-03-24 20:55:21+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.3.34+maria~focal started.
allog_db | 2022-03-24 20:55:22+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
allog_db | 2022-03-24 20:55:22+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.3.34+maria~focal started.
allog_db | 2022-03-24 20:55:23+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
Error response from daemon: error while creating mount source path '/private/tmp/com.apple.launchd.9MwWRuEKwD/Listeners': mkdir /private/tmp/com.apple.launchd.9MwWRuEKwD/Listeners: operation not supported
Docker Desktop 4.6.1 (76265)
macOS 12.2.1 (21D62)
rimelek
(Ákos Takács)
March 25, 2022, 6:44pm
2
At the end of the blog post there is a link to a GitHub roadmap issue where you can report any problem:
opened 10:56AM - 06 Mar 20 UTC
docker_desktop
Update: we are now looking at using GRPCFuse rather than mutagen as a simpler pa… th for perf improvement.
**Tell us about your request**
Integrate the mutagen pluggin within Docker Desktop to provide users with a file caching option to improve performance on modern web frameworks like PHP Symphony
**Which service(s) is this request for?**
Desktop
**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
File system performance is big issue on Mac,our goal improve web page refresh for web languages like PHP from 2.8 seconds to 0.2 seconds
**Are you currently working around this issue?**
N/A
**Additional context**
N/A
**Attachments**
https://github.com/docker/for-mac/issues/77
I tried your compose file on my Mac 12.3 (M1). It worked, but there is an other permission error report in the Github thread I linked above.
One thing I noticed though is that you have an adminer and a mailhog container too. Is there something else too that you removed from your docker compose file before sharing?
maxx3r
(Maxxer)
March 28, 2022, 7:28am
3
Full config here:
version: '3.6'
networks:
docker-network:
driver: bridge
services:
##
## NGINX CONFIG
##
docker-nginx:
container_name: ${APP_NAME}_nginx
image: library/nginx:latest
restart: unless-stopped
ports:
- 80:80
volumes:
- ./logs/nginx/:/var/log/nginx:cached
- ./source/:/var/www/html:delegated
- ${APP_SOURCE_ROOT}:/var/www/html/${APP_NAME}:delegated
- ./nginx/sites-enabled:/etc/nginx/sites-enabled:ro,delegated
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:delegated
- ./nginx/certs:/etc/nginx/certs:ro,delegated
depends_on:
- php
networks:
docker-network:
environment:
- APP_ENVIRONMENT=${APP_ENVIRONMENT:-production}
- PHP_USER_ID=docker
- PHP_GROUP_ID=${GROUP_ID:-docker}
##
## APP CONFIG
##
php:
container_name: ${APP_NAME}_app
build: ./php
restart: unless-stopped
expose:
- '9000'
volumes:
- ./source/:/var/www/html:delegated
- ${APP_SOURCE_ROOT}:/var/www/html/${APP_NAME}:delegated
- ./php/php.ini:/usr/local/etc/php/php.ini:ro,delegated
- ./php/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini:delegated
- ./auth.json:/home/docker/.config/composer/auth.json:ro,delegated
- ./logs/xdebug/:/var/log/xdebug:cached
- ${SSH_AUTH_SOCK}/:/ssh-agent
networks:
docker-network:
depends_on:
- docker-mysql
environment:
- APP_ENVIRONMENT=${APP_ENVIRONMENT:-production}
- PHP_USER_ID=docker
- PHP_GROUP_ID=${GROUP_ID:-docker}
- SSH_AUTH_SOCK=/ssh-agent
links:
- mailhog:mailhog
##
## DATABASE CONFIG
##
docker-mysql:
container_name: ${APP_NAME}_db
image: 'mariadb:10.3'
restart: unless-stopped
expose:
- '3306'
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_PORT=${MYSQL_PORT}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- ./mysql/data:/var/lib/mysql:cached
- ./mysql/conf/my.cnf:/etc/mysql/my.cnf:ro,delegated
- ./mysql-files:/var/lib/mysql-files
networks:
docker-network:
##
## MAIL CONFIG
##
mailhog:
container_name: ${APP_NAME}_mailhog
image: mailhog/mailhog
restart: unless-stopped
ports:
- 1025:1025
- 8025:8025
networks:
docker-network:
adminer:
container_name: ${APP_NAME}_adminer
image: adminer:4.8.1
restart: "no"
environment:
- ADMINER_DEFAULT_SERVER=${APP_NAME}_db
ports:
- 82:8080
networks:
docker-network:
thanks
rimelek
(Ákos Takács)
March 31, 2022, 10:01pm
4
Sorry, I was very busy and wanted to test your config, but I didn’t have enough time. Looking at the config I can’t see anything that should cause the issue. I hope you can find the cause. Also you can share anything in this topic that you find which could be related to the error. Maybe with some additional info somebody will have an idea. Either we or the developers
The problem is this:
This never worked with Docker for Mac for obvious reasons, but with VirtioFS actually gives errors.
2 Likes
rimelek
(Ákos Takács)
April 1, 2022, 5:52pm
6
I didn’t know wthat that “Listeners” was in the error message. It makes sense now
maxx3r
(Maxxer)
April 4, 2022, 7:03am
7
Thank you @martijnstorck , that made it work! Indeed also much faster with VirtioFS