Linux/Docker/Registry: Difference between revisions

From Wiki
< Linux‎ | Docker
mNo edit summary
mNo edit summary
Line 8: Line 8:
     ports:
     ports:
     - "5000:5000"
     - "5000:5000"
    environment:
      REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
    volumes:
      - /srv/docker-data/registry:/data
</pre>
</pre>



Revision as of 16:44, 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