docker常用命令

docker安装:https://www.runoob.com/docker/centos-docker-install.html

 

获取镜像:docker pull centos

启动容器:docker run -it centos /bin/bash

映射端口、目录并启动:docker run --name webapp -p 8080:80 -it --privileged=true -v /home/wwwroot:/home/wwwroot centos /bin/bash

查看所有容器:docker ps -a

进入容器:docker exec -it xxxxxxxxxxxxxxx /bin/bash

上一篇:git 入门教程之 git bash 竟然不支持 tree 命令


下一篇:A Child's History of England.97