docker 常用命令

1.查看docker版本

docker version

2.运行hello world

docker run hello-world

 3.查看docker服务运行状态

systemctl status docker    # 查看状态
systemctl start docker    # 开始docker 
systemctl stop docker     # 停止docker
systemctl enable docker  # 开机启动

 4.查看docker信息

docker info

5.查看docker帮助

docker --help

 

posted @ 2022-10-24 21:49  o蹲蹲o  阅读(20)  评论(0编辑  收藏  举报