Linux/Docker/Registry: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 17: | Line 17: | ||
docker-compose up -d | docker-compose up -d | ||
</pre> | </pre> | ||
== Put example image in registry == | |||
<pre> | |||
docker pull alpine | |||
docker tag alpine localhost:5000/my-alpine | |||
docker push vm-docker:5000/my-alpine | |||
[[Category:Linux/Docker]] | [[Category:Linux/Docker]] | ||
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 16:45, 6 December 2021
Example docker-compose.yml
version: '3' services: registry: image: registry:2 ports: - "5000:5000" environment: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data volumes: - /srv/docker-data/registry:/data
docker-compose up -d
Put example image in registry
docker pull alpine docker tag alpine localhost:5000/my-alpine docker push vm-docker:5000/my-alpine