我试图在docker-compose.yml v2中找到带有网络声明的用法“ internal”属性的示例.
我搜索如何做这句话:
docker network create someName --internal
但在docker-compose.yml中.
尝试使用此变体时出现错误:
version: '2'
services:
# services definition
networks:
someName:
internal: true
错误信息:
The Compose file '.\docker-compose.yml' is invalid because:
networks.someName value Additional properties are not allowed ('internal' was unexpected)
最佳答案