docker常用命令
docker ps [-a]
docker exec -it ${imageName}|${id} /bin/bash
docker run -it -d --name ${alias} ${imageName}[:$Tag] -p $serverPort:$dockerServerPort /bin/bash
docker cp ${id}:/mnt/mydir/ ./localDir
docker history --format --no-trunc=true ${id} |sed "s?/bin/sh\ -c\ \#(nop)\ ??g"|sed "s?/bin/sh\ -c?RUN?g" | tac
docker images
docker search $name
docker pull|run $imageName[:$tag]
docker rmi -f $imageName|$id
docker image rm $imageName|$id
netstat -untlp
docker version|info
systemctl start|stop|restart|enable docker
systemctl status docker
docker [$command] --help
docker images