Where is config.yaml and image files stored for private docker registry?

After installing a private docker registry on linux, where can I find the

  • config.yaml file (everything online points to this /etc/docker/registry/config.yml but I have no such path)

  • the default location where the images are stored on the local file system


Assuming you installed the registry by deploying the registry image, then that path is inside the container:

$ docker run registry ls /etc/docker/registry/config.yml


The images are also in the container in /var/lib/registry