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
6.查看网络:
docker network ls
查看网络的详细信息:
docker inspect <你的网络名称>
7.其他常用:
# 1、基础类的
docker search
docker login -u admin -p xxxxx 镜像仓库地址:端口
# 2、镜像相关
docker image
ls ******
ls -q # 静默输出,只输出容器的id
pull
push
tag
inspect ******
rm ******
save
load
# 3、容器相关
docker container
run ******
start ******
stop ******
restart
kill
attach
exec ******
ls ******
top ******
inspect ******
logs
docker container rm -f `docker container ls -a -q `

浙公网安备 33010602011771号