docker初使用(主要记录命令)

启动服务 
docker run -it -p 8000:8000 steveny/predictionio:0.12.0 /bin/bash
开始所有服务
pio-start-all
查看有那些服务
jps -l

$ docker images————展示当前镜像
$ docker ps————查找当前容器
$ docker ps -a ——展现所有容器
$ docker start 5f62————开始一个容器/镜像
$ docker rm aaad ————删除容器
$ docker attach 5f62 ————链接镜像
$ docker rmi hello-world ————删除镜像(报错,先删除容器
$ docker rmi -f hello-world ————强制删除镜像,镜像+容器一起删除
原文地址:https://www.cnblogs.com/Yuanjing-Liu/p/9439861.html