Docker Community Forums

Share and learn in the Docker community.

Docker repo configuration

Hello,
I am new to docker and going thru docker docs, trying to set up local environment to get more familiarised with docker. As I am doing this, came across a question that I could not find an answer online and decided to post the question here for help.

Question: docker pull
how and where is the configuration for the pull to know that it has to go out to hub.docker.com to get the image ?
How do i see the default config values for docker daemon process ?

Any guidance with my questions is much appreciated.

Thanks,
Peter

The middleware structure is optional. Use this option to inject middleware at named hook points. Each middleware must implement the same interface as the object it is wrapping. For instance, a registry middleware must implement the distribution.Namespace interface, while a repository middleware must implement distribution.Repository, and a storage middleware must implement driver.StorageDriver.

This is an example configuration of the cloudfront middleware, a storage middleware:

middleware:
registry:
- name: ARegistryMiddleware
options:
foo: bar
repository:
- name: ARepositoryMiddleware
options:
foo: bar
storage:
- name: cloudfront
options:
baseurl: https://my.cloudfronted.domain.com/
privatekey: /path/to/pem
keypairid: cloudfrontkeypairid
duration: 3000s
ipfilteredby: awsregion
awsregion: us-east-1, use-east-2
updatefrenquency: 12h
iprangesurl: https://ip-ranges.amazonaws.com/ip-ranges.json