What is the difference between links and external_links?

  docker, question

Is there any difference between links and external_links? Under what circumstances do you use them?

I think the official document explains quite clearly, just read the official document.

links

external_links

In addition,linksThe command is already in dockerlegacy, not recommended. This is a very old version of the container combination solution, which is not needed now and is almost useless.