- 进入docker-compose/registry,启动registry作为镜像仓库
docker-compose up -d
- 进入dockerfile中的项目目录,如dockerfile/php/7.0.33
- 构建镜像、打上tag并推送远程仓库(换成自己的ip)
docker build -t php:7.0.33 . docker tag php:7.0.33 192.168.159.130:5000/php:7.0.33 docker push 192.168.159.130:5000/php:7.0.33
- 查看仓库中镜像
curl http://192.168.159.130:5000/v2/_catalog curl http://192.168.159.130:5000/v2/php/tags/list
- 修改项目的docker-compose.yml中image的ip,如:docker-compose/web/docker-compose.yml
- 启动项目即可
-
Notifications
You must be signed in to change notification settings - Fork 1
存放一些Dockerfile和docker-compose文件
License
zhaoyang1214/docker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
存放一些Dockerfile和docker-compose文件
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published