这是一个创建于 875 天前的主题,其中的信息可能已经有所发展或是发生改变。
windows11
docker desktop 最新版
docker-compsoe.yml 中指定了
手动在 docker desktop 中新建的的 volume 名称:static_content
services:
xxx:
container_name: web-api
image: xxx-web:0.1
volumes:
- weblogs:/home/java/logs
- static_content:/home/website/dist/Files
restart: always
ports:
- 8101:8101
volumes:
weblogs:
static_content:
启动后并没有按照预期使用我创建的 volume
而是使用了文件夹名称后加 static_content 的形式:xxxx_static_content
我哪里写错了吗
|
|
1
soulzz 2021-12-08 17:07:42 +08:00
ok 解决了
volumes: weblogs: external: true static_content: external: true
|