-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac Address Parameter Ignored in Compose File #280
Comments
Realised i was not on latest version of Dockge v1.3.3 Deployed latest version of dockge from v1.2.0 and issue is no longer present and container keeps static mac address as per parameter. |
Tried again this morning and redeployed same container from Dockge and it was given a new mac address. Deployed with compose directly from OS and it was given the correct mac address so something is still not right |
I think you should reconfirm this, because Dockge is just running a command "docker compose up -d" for you. Nothing special. It could be a bug of docker compose v2. |
I have just created a new grafana container in Dockge and deployed using the following compose
When i run a docker inspect the mac address is not the same as the parameter specified
If i then delete and recreate the container from the OS using the compose file generated by dockge i have no issues
So something is not right for me when i deploy using Dockge as the mac_address is not being configured to what i use in compose file. I can deploy from OS and everything works correctly but it kind of defeats the object of me using Dockge |
Should be an upstream bug: docker/compose#11041 What is your docker compose version on your host?
Edit: They said it has been fixed, but haven't release it yet. I will update it once they released the fixed. At this moment, you should keep using your host's docker-compose and don't update it. |
[admin@qnap grafana]# docker compose version |
Yes, your version is older. Dockge is using the newer version 2.21.0 which contains this bug. We should wait until they released the bug fix. |
🛡️ Security Policy
Description
I am deploying a number of containers all of which have a static mac address assigned so that i can create firewall rules and allow access to various devices and internet.
The compose i am using is detailed as below
When i run an inspect on the container the mac address is different from that in the compose file
If i restart the container the mac address changes but should remain static to what is set in compose file
This code was lifted from an existing deployment which worked without issue and kept the same mac address when i deployed directly with docker compose
👟 Reproduction steps
Created compose file with mac_address parameter
Deployed container
Checked mac_address with docker inspect pihole0
👀 Expected behavior
The mac address should remain static when specified in compose file and between docker restarts
😓 Actual Behavior
The mac address changes each time contain is restarted
Dockge Version
1.2.0
💻 Operating System and Arch
Linux qnap 5.10.60-qnap #1 SMP Tue Sep 26 01:46:28 CST 2023 x86_64 GNU/Linux
🌐 Browser
N/A
🐋 Docker Version
Docker version 20.10.22-qnap7, build 57ed8b8
🟩 NodeJS Version
Unknown
📝 Relevant log output
The text was updated successfully, but these errors were encountered: