How to use Dockerfile to link main container to a db container?
Docker has a quite convenient way to link the main container to a db container with a command like:
docker run --link db:db user/main
This is very convenient already. However, I believe it’s still clumsy compared to a command like:
docker run user/ultra
ultra is a container that is already linking the main container to the db container.
Is that possible that I can achieve this by writing a good
I suppose I can start the
but how do I get the second container involved and then link them with