Installing the latest version from the Docker source installs the latest version with the Docker source
To install the latest Docker version, you first need to install APT-TRANSPORT-HTTPS support and then install it by adding a source. To install the latest Docker version, you first need to install APT-TRANSPORT-HTTPS support and then install it by adding a source.
$ sudo apt-get install Apt-transport-https $ sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 36A1D7 869245c8950f966e92d8576a8ba88d21e9 $ sudo bash-c "Echo Deb Https://get.docker.io/ubuntu Docker main >/etc/apt/source S.list.d/docker.list "$ sudo apt-get update $ sudo apt-get install Lxc-docker
Start the Docker service
$ sudo service docker start
Get Mirror
$ sudo docker pull ubuntu:14.04
Sometimes the official warehouse registration server download is slow and can be downloaded from other warehouses. You need to specify the full warehouse registration server address when downloading from another warehouse. For example
$ sudo docker pull dl.dockerpool.com:5000/ubuntu:12.04 pulling Dl.dockerpool.com:5000/ubuntu ab8e2728644c:pulling Dependent layers 511136ea3c5a:download Complete 5f0ffaa9455e:download complete a300658979be:download complete 904483ae 0c30:download Complete Ffdaafd1ca50:download Complete d047ae21eeaf:download complete
Create a container where you run the Bash app to create a container where you run the Bash app
$ sudo docker run-t-i Ubuntu:14.04/bin/bash
List local Mirrors
$ sudo docker images//show locally existing mirrors
Modify an existing mirror
$ sudo docker commit-m "note"-a "submitter" 0b2616b0e5a8 ubuntu:14.04
- where "0b2616b0e5a8" is the Mirror ID
- "-M" parameter followed by commit comment
- The "-a" parameter is followed by the submitter's information, such as the name
- "ubuntu:14.04" represents the warehouse and version number (TAG)
Dock Basic Usage