[root@VM-0-10-centos nginx]# docker-compose up -d
Creating nginx ... error
ERROR: for nginx Cannot start service nginx: oci runtime error: container_linux.go:235: starting container process caused "container init exited prematurely"
ERROR: for nginx Cannot start service nginx: oci runtime error: container_linux.go:235: starting container process caused "container init exited prematurely"
ERROR: Encountered errors while bringing up the project.
原因
在发布nginx的时候,失败,原因是 -v 映射的文件夹不存在
解决方案
先创建好文件