Last active
July 30, 2018 03:50
-
-
Save jerry-sl/36771254b068d719716143f9772bed65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 删除所有已经停止的container | |
docker rm -v $(docker ps -aq -f status=exited) | |
// 从dockerhub下拉镜像 | |
docker pull redis | |
// 后台启动容器 | |
docker run --name myredis -d redis | |
// 启动另外一个容器并链接到myredis:redis容器 | |
docker run --rm -it --link myredis:redis redis /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment