docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting "/usr/etc/redis/conf/redis.conf" to rootfs "/var/lib/docker/overlay2/cd5614899052ea3c273dd37d50074cddb5c300d44ceb2de32133b29c3c8a3cda/merged" at "/var/lib/docker/overlay2/cd5614899052ea3c273dd37d50074cddb5c300d44ceb2de32133b29c3c8a3cda/merged/usr/local/etc/redis/redis.conf" caused "not a directory""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
原因:docker挂载文件时默认创建的是目录,要挂载文件时需要手动创建该文件
原文:https://www.cnblogs.com/jinit/p/13738821.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!