Dock Basic Usage

Source: Internet
Author: User

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

    1. where "0b2616b0e5a8" is the Mirror ID
    2. "-M" parameter followed by commit comment
    3. The "-a" parameter is followed by the submitter's information, such as the name
    4. "ubuntu:14.04" represents the warehouse and version number (TAG)

Dock Basic Usage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.