Replies: 1 comment 10 replies
-
这个错误提示表明在使用 docker-compose.yml 文件时,mac_address 属性在当前网络配置中不被允许。可能原因是 docker-compose.yml 文件的格式或配置不符合 docker-compose 的版本规范,或当前的网络配置不支持该属性。 解决方法:
|
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
联系方式
lvxj11
1Panel 版本
社区版v1.10.12-lts
问题描述
容器使用macvlan网络,希望固定mac。在配置了mac选项点保存时报错:
服务内部错误: update failed when handle compose up, err: stderr: validating /opt/1panel/docker/compose/MediaDownloadAndManagement/docker-compose.yml: services.busybox.networks.default Additional property mac_address is not allowed , recreate failed: stderr: validating /opt/1panel/docker/compose/MediaDownloadAndManagement/docker-compose.yml: services.busybox.networks.default Additional property mac_address is not allowed
然后登陆终端,使用命令执行可以顺利执行并按预期固定了mac地址。
重现步骤
在yml文件使用macvlan网络,给容器网络配置mac_address: "xx:xx:xx:xx:xx:xx"选项点保存会报错。
期待的正确结果
可以正常保存并执行。
相关日志输出
附加信息
No response
Beta Was this translation helpful? Give feedback.
All reactions