docker 进入各种容器note

1.docker 进入reids:
docker exec -it containerID /bin/bash redis-cli

2.docker 进入mongo:
docker exec -it containerID mongo admin