1,安装docker,请参考 linux安装docker
2,安装docker-compose,请参考 Docker-Compose
3,安装simpleDocker
准备docker-compose.yml文件
version: '3'
services:redis:container_name: redisimage: redis:latestweb:container_name: simple-dockerimage: registry.cn-hangzhou.aliyuncs.com/seven-tao/simple-docker:0.0.7ports:- "80:4050"volumes:- /tmp/simple-docker/back:/tmp/back- /var/run/docker.sock:/var/run/docker.sockdepends_on:- redis
运行docker-compose.yml文件
docker-compose up -d
访问 http://localhost:
默认用户名:admin
默认密码:123456