When you create a mirror through dockerfile, it is generally based on the official image provided by the Docker Hub. The following describes how to create a personal private base image on a ubuntu16 system .
1, install bootstrap tool Debootstrap
$ sudo apt-get insall debootstrap-y
2. Download ubuntuxenial (16.04) binaries using debootstrap
3. Create a base image using the Docker Import command
1) Import the image under the Xenial directory
# tar-c Trust-c. The command is used to compress the contents of the Xenial directory into a single file and output to stdout. by | (pipeline) to pass output content to the Docker Import command. $ sudo tar-c xenial-c. | sudo docker import-xenial
2) Import files on the network
$ sudo docker import http://test.com/trust.tgz xenial
4. Output image
$ docker Images
5. Run Image xenial
$ docker run-i-T--name Hello Xenial/bin/bash
Ubuntu16 creating a docker base image