HoshinoRei / l4d2server-docker

A dockerized Left 4 Dead 2 server
https://hub.docker.com/r/hoshinorei/l4d2server
MIT License
5 stars 1 forks source link

无法创建容器 #17

Closed padoru233 closed 9 months ago

padoru233 commented 9 months ago

参考文档的方法无法创建容器,使用docker compose up -d命令有“Error response from daemon: cannot mount volume over existing file, file exists /var/lib/docker/overlay2/fe7ab4d8ce5a4206624660c917a2d758599953fbf73258d669a63da8d41f8843/merged/home/steam/l4d2server/left4dead2/host.txt”报错

HoshinoRei commented 9 months ago

没想到居然有人用。抱歉,小玲忘记更新文档了。 volumes 加这么一行就可以了。host.txt 文件需要自己创建,内容可以为空。 - ./host.txt:/home/steam/l4d2server/left4dead2/host.txt:ro