原创

docker目录挂载失败 using volume "/data" from the previous container

####1.docker目录挂载失败

WARNING警告

WARNING: Service "redis" is using volume "/data" from the previous container. Host mapping "/Users/lishihao/Desktop/gitee/dockerf/lsh/redis/daRecreating redis_redis_1 ... done

解决

加上参数

 privileged=true #即可

docker命令和docker-compose都用此命令

正文到此结束
本文目录