containers-roadmap icon indicating copy to clipboard operation
containers-roadmap copied to clipboard

Mac Address Configuration Option

Open blaines opened this issue 7 years ago • 10 comments

This relates to #502 I have a use case for the --mac-address option. I know it's not supported by ECS or it's agent right now. Are there any workarounds I might be able to utilize so I can still use ECS but also satisfy my application requirement?

Unlike some other docker options, I can't add this to /etc/sysconfig/docker.

blaines avatar May 16 '17 22:05 blaines

Hi @blaines, thanks for opening this! I've gone ahead and marked this as a feature request, but I'd love it have more details on the use-case and requirements you'd see around this feature.

  • Would you want to set the MAC address in the task definition?
  • Would you want ECS to manage MAC addresses? Should MAC addresses be unique across your cluster?
  • Would you need to override the MAC address at the time that you're launching a task?
  • Would you only use this with the bridge networking mode?

Thanks! Sam

samuelkarp avatar May 16 '17 23:05 samuelkarp

  • Would you want to set the MAC address in the task definition? Yes that is my specific use case, as there's only one of these kind of tasks/container per instance anyway.
  • Would you want ECS to manage MAC addresses? Should MAC addresses be unique across your cluster? I'm fine managing the MAC myself, for my use case there's no need for any guarantees outside of what docker already provides.
  • Would you need to override the MAC address at the time that you're launching a task? I could see us using this kind of feature as we grow. Especially keeping point 2 in mind, we could manage MACs ourselves more easily if we could override.
  • Would you only use this with the bridge networking mode? That's correct, the --mac-address option isn't supported in host mode.

In place of requiring full AWS ECS support for new options it would be nice if there was a path for "advanced usage" whereby we could perhaps create a list of keys/values (as JSON or other format) and those would be passed along through docker API (I'm indifferent to using MacAddress or --mac-address). For example if I could add a JSON object to the task definition which contained my advanced options and then that object was merged with the options to be submitted to Docker's /containers/create endpoint.

blaines avatar May 19 '17 17:05 blaines

I could really use this feature as well. We're using some older licensed software that is keyed to mac address and while we can run it on an instance using an ENI with the defined mac, it would be nice to move this to our ECS cluster.

I think the advanced usage that @blaines suggests would be great.

zacharyfox avatar Jul 13 '17 15:07 zacharyfox

Same here, we have app dependencies that we can only bundle in combination with a certain mac address. Works locally without issues, but we can't ship it to AWS 🙁

0x7061 avatar May 01 '18 12:05 0x7061

Yes, we at Cornell University would like to run FlexLM License Servers in ECS. This is impossible without being able to assign a specific MAC address to the container's bridge interface at runtime.

The requirements that @blaines outlined would be perfect for this use case. Being able to assign a MAC address in a Task Definition would be perfect. Overriding at runtime would be nice but is not required.

marty-sullivan avatar Sep 24 '18 21:09 marty-sullivan

Any updates :/ ?

0x7061 avatar Nov 23 '18 02:11 0x7061

Not sure why this is such a big deal, it's already supported in the compose file.

0x7061 avatar Dec 15 '18 21:12 0x7061

Not sure why this is such a big deal, it's already supported in the compose file.

Specifically where is this supported, within ECS?

chezbut avatar Feb 12 '19 20:02 chezbut

Hello, is there any chance that this gets implemented? What is holding you back since as already mentioned it is possible with docker-compose for example.

We also have an Licenserver software which needs a fixed mac which we would love to run in ECS.

JanMeier1337 avatar Mar 01 '22 14:03 JanMeier1337

Any update?

kbroughton avatar May 01 '24 06:05 kbroughton