Docker Community Forums

Share and learn in the Docker community.

Search Registries to pull image

Does docker support a configuration to search a sequence of registries to pull image similar to “apt install” command of ubuntu which will look out for source urls in /etc/apt/sources.list

Hi, I am also new to this forum and eventually joined because I also had the similar query. However, since you’ve posted it, I am definitely following this to get the answer for me…

You can configure the local daemon to use/search one or more insecure or secure registries by either adding command line flag(s) on startup, or via configuration lines in daemon.json. For detailed information on syntax and usage, you can consult the engine documentation at https://docs.docker.com/engine/reference/commandline/dockerd/ , https://docs.docker.com/engine/reference/commandline/dockerd/#insecure-registries and https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file