1. 程式人生 > >docker 的常用命令

docker 的常用命令

[[email protected] ~]# service docker restart

[[email protected] ~]# service docker stop

[[email protected] ~]# service docker start

[[email protected] ~]# docker run -it -v /docker_test:/ryp  --name ryp

[[email protected] ~]# docker ps

[[email protected] ~]#docker ps -a

[
[email protected]
~]# docker start ryp [[email protected] ~]# docker stop ryp [[email protected] ~]# docker restart ryp [[email protected] ~]# docker logs -f ryp [[email protected] ~]# docker stop ryp [[email protected] ~]# docker rm ryp [[email protected] ~]# docker rm $(docker ps -a -q)