I’m doing some research on NFV in container and it is important that if docker container can create a new virtual ethernet interface easily. However, i didn’t found a way to add one before running the container. Is there a way I miss?
Yes, this is entirely possible when using swarm mode, via overlay networks. We’ve got a solution/article on this topic; please take a look; I think it may provide some ideas to get you started. Multiple Docker Networks
There is also some documentation available around containers and networking: Container Networking that may be helpful.