You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Creating a local registry


> vi docker-compose.yml

docker-compose.yml
version: '3.0'
services:
  registry:
    image: registry:2
    container_name: registry
    ports:
    - '5000:5000'
    volumes:
    - $HOME/registry:/var/lib/registry


> docker-compose up

Accessing the local registry

By default the username and password are 'username' and 'password'


Login to your registry

> docker login -u username -p password localhost:5000





  • No labels