基于社区版Docker(docker-ce)
管理守护进行指令:
systemctl start docker #运行Docker守护进程 systemctl stop docker #停止Docker守护进程 systemctl restart docker #重启Docker守护进程 systemctl enable docker #设置Docker开机自启动 systemctl status docker #查看Docker的运行状态
管理镜像,拉取镜像:
docker pull registry.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5
修改标签。由于阿里云仓库镜像的镜像名称较长,您可以修改镜像标签以便记忆区分:
docker tag registry.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5:latest aliweb:v1
查看已有镜像
docker images
强制删除镜像:
docker rmi -f registry.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5
查看运行中的容器:
docker ps
查看所有容器:
docker ps -a
标签:常用,cn,systemctl,指令,apache,镜像,docker,Docker From: https://www.cnblogs.com/zzgxl/p/17296267.html