- Docker-compose.yml
無密碼,無SSL
1
2
3
4
5
6
7
8
9
10
11
12
| version: '3'
services:
registry:
image: registry:2.8.1
ports:
- "21010:5000"
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
volumes:
- ./auth:/auth
- ./data:/data
|
- Chagne your images name
1
| docker tag alpine localhost:21010/my-alpine
|
- Push it
1
| docker push localhost:21010/my-alpine
|
after all,
4. Pull your image from private registry
1
| docker pull localhost:21010/my-alpine
|
Ref. https://gabrieltanner.org/blog/docker-registry/