Many official versions of Linux images can be downloaded directly from the official repository (Public repositories. Considering the security and speed, we may want to set up a private repositories in our own LAN to store our own images. docker-registry is the tool we need.
git clone git clone https://github.com/docker/docker-registry.gitcd docker-registry/configcp config_sample.yml config.yml
When you use apt-get to install the software package in Debian, you are often prompted to insert a netinst disc:
Media change: please insert the disc labeled
You can open the file when you cannot install it./Etc/APT/sources. ListFile, comment out the line of CDROM,
Then executeApt-Get updateUpdate the Deb repository,
In this way, you will no longer search for CDROM when installing apt-Get.
Install necessary software packages and Python tools and libraries required by docker-registry:
apt-get install build-essential python-dev libevent-dev python-pip libssl-dev
Build a private docker-Registry Repository