I was reading a tutorial on linking docker containers.First they have created a container which runs redis image:
docker run -d --name redis-server redis
docker run -it --link redis-server:redis redis redis-cli -h redis
I do not understand some part of the command.
redis-cli -h redis I understand, but why it is being prepended by redis?