docker_dockerfile和dockerCompose常用命令

dockerfile

dockerfile=>image
在Dockerfile文件的所在路径执行docker build -t imageName:tag .,-t指定镜像名称,末尾的点标识Dockerfile文件的路径
image=>container
执行docker run -d -p 92:80 imageName:tag即可
常用指令如下图,直白用法点我,官方介绍点击我

dockerCompose

参考:docker-compose.yml 语法说明:https://www.web3.xin/index/article/182.html

参考

Docker及Docker-Compose的使用:https://www.jianshu.com/p/ca1623ac7723
docker-compose.yml 语法说明:https://www.web3.xin/index/article/182.html

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×