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