Docker的常用命令:
1. 查看启动的Docker 信息
docker ps -a | grep 'mydocker'
2. 启动、停止Docker
docker start/stop [id]
3. 进入启动的Docker
docker exec -ti [id] bash
4. 不启动直接进入Docker
docker run --entrypoint /bin/bash --ip [NCIP] -it [ImageId]
5. 查看Docker的详细信息
docker inspect [pid]
docker inspect [pid] | grep -A4 Entry # -A4 Entry下四行, -B4 Entry 上4行 -C4 上下4行
6.获取镜像根目录
docker inspect [imageid] | grep RootDir
7.文件拷贝
docker cp localpath [dockerid]:/docker/path
docker cp [dockerid]:/docker/path localpath