docker-compose up -d启动容器时报错ERROR: for yii2_fecshop_docker_redis_1 Cannot create container for service redis: error creating aufs mount to /var/lib/docker/aufs/mnt

安装报错 · DocTam · 于 1年前 发布 · 948 次阅读

按照官方文档进行安装,使用docker-compose.yml.aliyun构建(docker-compose build)完成后,docker-compose up -d启动容器时报错,具体报错信息如下:

[root@a8b7470f705a yii2_fecshop_docker]# docker-compose up -d
Creating yii2_fecshop_docker_redis_1     ... error
Creating yii2_fecshop_docker_mongodb_1 ... 
Creating yii2_fecshop_docker_xunsearch_1 ... 
Creating yii2_fecshop_docker_mysql_1     ... 

ERROR: for yii2_fecshop_docker_redis_1  Cannot create container for service redis: error creating aufs mount to /var/lib/docker/aufs/mnt/4f42dc4dd7a249bb078c8106f04f74c2337bbf1fae0faf73772d3bcf3cd7a972-init: mount target=/var/lib/docker/aufs/mnt/4f42dc4dd7a249bb078c8106f04f74c2337bbf1fae0faf73772d3bcf3cd7a972-init data=br:/var/lib/docker/aufs/diff/4f42dc4dd7a249bb078c8106f04f74c2337bbf1fae0faf73772d3bcf3cd7a972-init=rw:/var/lib/docker/aufs/diff/3b3fe71f9bca0edc1bcc2a4654ac55c9d32bb0aacc5a9fb1fda90b56cf97eb6f=ro+wh:/var/lib/docker/aufs/diff/4ba331b8a159a5e55e313b8479f0d4cfb60e27c56a16044486fd23c64bd4f881=ro+wh:/var/lib/docker/aufs/diff/6af2f6191222c7d3e9a5c47efe5777d517234aafb6ca62b873b1eb003932c41c=ro+wh:/var/lib/doCreating yii2_fecshop_docker_mongodb_1   ... erroraeb8b347acd5a064dd562cb7eb78ed6=ro+wh:/var/lib/docker/aufs/diff/5d0e0c2ff488e20e2896c387a9b2e90af5c5f6969bc1539c5f40c327041d16fa=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument

ERROR: for yii2_fecshop_docker_mongodb_1  Cannot create container for service mongodb: error creating aufs mount to /var/lib/docker/aufs/mnt/a4fb0a7f3a0c0cb640d094cbd19c33adc8e7d985842250cc02fc55626848a40d-init: mount target=/var/lib/docker/aufs/mnt/a4fb0a7f3a0c0cb640d094cbd19c33adc8e7d985842250cc02fc55626848a40d-init data=br:/var/lib/docker/aufs/diff/a4fb0a7f3a0c0cb640d094cbd19c33adc8e7d985842250cc02fc55626848a40d-init=rw:/var/lib/docker/aufs/diff/3a6cd6e48a857d1e6292f73098bff8ae7d91c9244de40c76eeb8911fd82ea419=ro+wh:/var/lib/docker/aufs/diff/1971c8bc6f531b2a36f4f3a4fcb3ef788de60edc794701bda167266ee040fc2a=ro+wh:/var/lib/docker/aufs/diff/6cbb8cf46eda0133a4f7fb8872f8dda6ac093c24b664b4459da03c03e18bbb8a=ro+wh:/var/lib/docker/aufs/diff/bee9962f872ba438e3f48a729ee149c186e4cb6ae9fc26aa65f9ea2c47eb24b9=ro+wh:/var/lib/docker/aufs/diff/52770122c2f39f63bf12606055258dd25ffa1271a4f4a60476b613aa820234e2=ro+wh:/var/lib/docker/aufs/diff/5b59bb1585d583483290f68d2143be494931f26cafb9d0cb44c8a24cec5c237d=ro+wh:/var/lib/docker/aufs/diff/f25bc89e3cee342243276e3f1699dd2d18732c300c2e2f0a27f56df72aed03af=ro+wh:/var/lib/docker/aufs/diff/37e541879517fcf90a392b5eada7Creating yii2_fecshop_docker_xunsearch_1 ... errorlib/docker/aufs/diff/5d0e0c2ff488e20e2896c387a9b2e90af5c5f6969bc1539c5f40c327041d16fa=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument

ERROR: for yii2_fecshop_docker_xunsearch_1  Cannot create container for service xunsearch: error creating aufs mount to /var/lib/docker/aufs/mnt/96deb66473712b2c54401d0dcdcb7883bc4a2be2e1ddecb313534a3d8ade2182-init: mount target=/var/lib/docker/aufs/mnt/96deb66473712b2c54401d0dcdcb7883bc4a2be2e1ddecb313534a3d8ade2182-init data=br:/var/lib/docker/aufs/diff/96deb66473712b2c54401d0dcdcb7883bc4a2be2e1ddecb313534a3d8ade2182-init=rw:/var/lib/docker/aufs/diff/88d0a5d4225d4ea879770fd4d5533bba4c4a22a8802677d81afdd810e8f9b102=ro+wh:/var/lib/docker/aufs/diff/b05e248a411224e7c53d9124041b7c9b7665f8e0e3df7aaf8dfbf2381060cf17=ro+wh:/var/lib/docker/aufs/diff/cf59e673dc03bd8d1e5813b91a979f74f29711316cd479f045f1477b2fd4f813=ro+wh:/var/lib/docker/aufs/diff/1fb41608e27b37e4d64b33e9e6818a30c5bb6a3dbbb71b2f13f1bd1aeb649246=ro+wh:/var/lib/docker/aufs/diff/e7fdf67f5e229126ba80b61d7f2e5d93ead6a73f39fbf09d7920dc3876e65b36=ro+wh:/var/lib/docker/aufs/diff/cee9590321d057c3c51d0648860def45cc58eab6b9059373a3ca3e3bf998d4e4=ro+wh:/var/lib/docker/aufs/diff/14c15026ba52614229909afaa9f4b7f13a4df6033bdc701a7b7e79a3d639be31=ro+wh:/var/lib/docker/aufs/diff/87e4f00b27ee321abcb686fb73d84b66ccffa54a03a9c2dfdc836ad90c1d45be=ro+wh:/var/lib/docker/aufs/diff/8dd38a015a7220a10f70f53946e44a88333d5b410f04227fb2863839e51afdfb=ro+wh:/var/lib/docker/aufs/diff/5577c4178a5a790a044f08b00451d465acab668ac4df6875859b065b40361182=ro+wh:/var/lib/docker/aufs/diff/172b361e0c878d01dded952Creating yii2_fecshop_docker_mysql_1     ... error

ERROR: for yii2_fecshop_docker_mysql_1  Cannot create container for service mysql: error creating aufs mount to /var/lib/docker/aufs/mnt/b173f2e6f74ac7e1d7d7d684e1ae8948b8f3fc673942e0edbe06e3042a528608-init: mount target=/var/lib/docker/aufs/mnt/b173f2e6f74ac7e1d7d7d684e1ae8948b8f3fc673942e0edbe06e3042a528608-init data=br:/var/lib/docker/aufs/diff/b173f2e6f74ac7e1d7d7d684e1ae8948b8f3fc673942e0edbe06e3042a528608-init=rw:/var/lib/docker/aufs/diff/25a05a487aa34b5f965358967b6f092ac1a2e01319728de50ad7f6aa29b23378=ro+wh:/var/lib/docker/aufs/diff/7dfb33655ae0b6be4d94c0fced88c58c6005b7b7d76f1d013736b7fa6957207e=ro+wh:/var/lib/docker/aufs/diff/8b64791bd227faf4e7cace965b36742ea92bde73923115d7881e6e1a3dcd12e1=ro+wh:/var/lib/docker/aufs/diff/30e1c9d6fa790a85088df9d08c548731af8892f794ca84c3c143de3791c391d1=ro+wh:/var/lib/docker/aufs/diff/795a66694b2a65fed74372de030abb7ba1b97f968430716b4965dc968fc0d976=ro+wh:/var/lib/docker/aufs/diff/e26b5e570c78d18a1c7d15fc8e783bd5bf40470f477580510ccd5d53bdbe6cc2=ro+wh:/var/lib/docker/aufs/diff/999299bc8430501317fd9c5ab57906e25a3de5196d5af26bee555e5086ccb9ec=ro+wh:/var/lib/docker/aufs/diff/d4c81a0f569d27c660f7a8d080e32722ed5156d62a1fc97886567bdb6f11b888=ro+wh:/var/lib/docker/aufs/diff/0eeeac261879bf5b644b802872ffb6cefa43c2d4337de84e1d2fa984ad338f50=ro+wh:/var/lib/docker/aufs/diff/954ce631e691a94384959ceb65d742b902c7eb9a6b782c20b8dded2b0c9cc11e=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument

ERROR: for redis  Cannot create container for service redis: error creating aufs mount to /var/lib/docker/aufs/mnt/4f42dc4dd7a249bb078c8106f04f74c2337bbf1fae0faf73772d3bcf3cd7a972-init: mount target=/var/lib/docker/aufs/mnt/4f42dc4dd7a249bb078c8106f04f74c2337bbf1fae0faf73772d3bcf3cd7a972-init data=br:/var/lib/docker/aufs/diff/4f42dc4dd7a249bb078c8106f04f74c2337bbf1fae0faf73772d3bcf3cd7a972-init=rw:/var/lib/docker/aufs/diff/3b3fe71f9bca0edc1bcc2a4654ac55c9d32bb0aacc5a9fb1fda90b56cf97eb6f=ro+wh:/var/lib/docker/aufs/diff/4ba331b8a159a5e55e313b8479f0d4cfb60e27c56a16044486fd23c64bd4f881=ro+wh:/var/lib/docker/aufs/diff/6af2f6191222c7d3e9a5c47efe5777d517234aafb6ca62b873b1eb003932c41c=ro+wh:/var/lib/docker/aufs/diff/e15269fd33031e2d6bfe7a020fa35444263a2cefe482b582eeb857510dbf79e3=ro+wh:/var/lib/docker/aufs/diff/cc5cd39df7c0ac8bd34d155f64229627eaeb8b347acd5a064dd562cb7eb78ed6=ro+wh:/var/lib/docker/aufs/diff/5d0e0c2ff488e20e2896c387a9b2e90af5c5f6969bc1539c5f40c327041d16fa=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument

ERROR: for mongodb  Cannot create container for service mongodb: error creating aufs mount to /var/lib/docker/aufs/mnt/a4fb0a7f3a0c0cb640d094cbd19c33adc8e7d985842250cc02fc55626848a40d-init: mount target=/var/lib/docker/aufs/mnt/a4fb0a7f3a0c0cb640d094cbd19c33adc8e7d985842250cc02fc55626848a40d-init data=br:/var/lib/docker/aufs/diff/a4fb0a7f3a0c0cb640d094cbd19c33adc8e7d985842250cc02fc55626848a40d-init=rw:/var/lib/docker/aufs/diff/3a6cd6e48a857d1e6292f73098bff8ae7d91c9244de40c76eeb8911fd82ea419=ro+wh:/var/lib/docker/aufs/diff/1971c8bc6f531b2a36f4f3a4fcb3ef788de60edc794701bda167266ee040fc2a=ro+wh:/var/lib/docker/aufs/diff/6cbb8cf46eda0133a4f7fb8872f8dda6ac093c24b664b4459da03c03e18bbb8a=ro+wh:/var/lib/docker/aufs/diff/bee9962f872ba438e3f48a729ee149c186e4cb6ae9fc26aa65f9ea2c47eb24b9=ro+wh:/var/lib/docker/aufs/diff/52770122c2f39f63bf12606055258dd25ffa1271a4f4a60476b613aa820234e2=ro+wh:/var/lib/docker/aufs/diff/5b59bb1585d583483290f68d2143be494931f26cafb9d0cb44c8a24cec5c237d=ro+wh:/var/lib/docker/aufs/diff/f25bc89e3cee342243276e3f1699dd2d18732c300c2e2f0a27f56df72aed03af=ro+wh:/var/lib/docker/aufs/diff/37e541879517fcf90a392b5eada76df155963fc57117d07b7453353c7d7e1b57=ro+wh:/var/lib/docker/aufs/diff/7f216d568fe39c56e08bdd7110d9e2b9598897854f62872ad56ff9fa801990ad=ro+wh:/var/lib/docker/aufs/diff/5d0e0c2ff488e20e2896c387a9b2e90af5c5f6969bc1539c5f40c327041d16fa=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument

ERROR: for xunsearch  Cannot create container for service xunsearch: error creating aufs mount to /var/lib/docker/aufs/mnt/96deb66473712b2c54401d0dcdcb7883bc4a2be2e1ddecb313534a3d8ade2182-init: mount target=/var/lib/docker/aufs/mnt/96deb66473712b2c54401d0dcdcb7883bc4a2be2e1ddecb313534a3d8ade2182-init data=br:/var/lib/docker/aufs/diff/96deb66473712b2c54401d0dcdcb7883bc4a2be2e1ddecb313534a3d8ade2182-init=rw:/var/lib/docker/aufs/diff/88d0a5d4225d4ea879770fd4d5533bba4c4a22a8802677d81afdd810e8f9b102=ro+wh:/var/lib/docker/aufs/diff/b05e248a411224e7c53d9124041b7c9b7665f8e0e3df7aaf8dfbf2381060cf17=ro+wh:/var/lib/docker/aufs/diff/cf59e673dc03bd8d1e5813b91a979f74f29711316cd479f045f1477b2fd4f813=ro+wh:/var/lib/docker/aufs/diff/1fb41608e27b37e4d64b33e9e6818a30c5bb6a3dbbb71b2f13f1bd1aeb649246=ro+wh:/var/lib/docker/aufs/diff/e7fdf67f5e229126ba80b61d7f2e5d93ead6a73f39fbf09d7920dc3876e65b36=ro+wh:/var/lib/docker/aufs/diff/cee9590321d057c3c51d0648860def45cc58eab6b9059373a3ca3e3bf998d4e4=ro+wh:/var/lib/docker/aufs/diff/14c15026ba52614229909afaa9f4b7f13a4df6033bdc701a7b7e79a3d639be31=ro+wh:/var/lib/docker/aufs/diff/87e4f00b27ee321abcb686fb73d84b66ccffa54a03a9c2dfdc836ad90c1d45be=ro+wh:/var/lib/docker/aufs/diff/8dd38a015a7220a10f70f53946e44a88333d5b410f04227fb2863839e51afdfb=ro+wh:/var/lib/docker/aufs/diff/5577c4178a5a790a044f08b00451d465acab668ac4df6875859b065b40361182=ro+wh:/var/lib/docker/aufs/diff/172b361e0c878d01dded95221e5cb3112e9a9192b416b3fc387547384cfb8009=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument

ERROR: for mysql  Cannot create container for service mysql: error creating aufs mount to /var/lib/docker/aufs/mnt/b173f2e6f74ac7e1d7d7d684e1ae8948b8f3fc673942e0edbe06e3042a528608-init: mount target=/var/lib/docker/aufs/mnt/b173f2e6f74ac7e1d7d7d684e1ae8948b8f3fc673942e0edbe06e3042a528608-init data=br:/var/lib/docker/aufs/diff/b173f2e6f74ac7e1d7d7d684e1ae8948b8f3fc673942e0edbe06e3042a528608-init=rw:/var/lib/docker/aufs/diff/25a05a487aa34b5f965358967b6f092ac1a2e01319728de50ad7f6aa29b23378=ro+wh:/var/lib/docker/aufs/diff/7dfb33655ae0b6be4d94c0fced88c58c6005b7b7d76f1d013736b7fa6957207e=ro+wh:/var/lib/docker/aufs/diff/8b64791bd227faf4e7cace965b36742ea92bde73923115d7881e6e1a3dcd12e1=ro+wh:/var/lib/docker/aufs/diff/30e1c9d6fa790a85088df9d08c548731af8892f794ca84c3c143de3791c391d1=ro+wh:/var/lib/docker/aufs/diff/795a66694b2a65fed74372de030abb7ba1b97f968430716b4965dc968fc0d976=ro+wh:/var/lib/docker/aufs/diff/e26b5e570c78d18a1c7d15fc8e783bd5bf40470f477580510ccd5d53bdbe6cc2=ro+wh:/var/lib/docker/aufs/diff/999299bc8430501317fd9c5ab57906e25a3de5196d5af26bee555e5086ccb9ec=ro+wh:/var/lib/docker/aufs/diff/d4c81a0f569d27c660f7a8d080e32722ed5156d62a1fc97886567bdb6f11b888=ro+wh:/var/lib/docker/aufs/diff/0eeeac261879bf5b644b802872ffb6cefa43c2d4337de84e1d2fa984ad338f50=ro+wh:/var/lib/docker/aufs/diff/954ce631e691a94384959ceb65d742b902c7eb9a6b782c20b8dded2b0c9cc11e=ro+wh,dio,xino=/dev/shm/aufs.xino: invalid argument
ERROR: Encountered errors while bringing up the project.
[root@a8b7470f705a yii2_fecshop_docker]# 

请问这个问题该如何处理呢?

共收到 1 条回复 问题提问
Fecmall#11年前 0 个赞

报错:1 Cannot create container for service redis

我也不是很清楚,搜了点资料,你参考下:

https://blog.csdn.net/u010457406/article/details/79881558

https://blog.csdn.net/qq_17054989/article/details/88562902

https://www.cnblogs.com/lfxiao/p/9814903.html

这是docker的知识,和fecmall无关

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics