Docker Online Tutorial Learning Notes

Source: Internet
Author: User
Tags docker ps

First of all, the personal understanding, Docker is similar to a Linux internal isolation of the sandbox, in the form of git, can be virtual out of a Linux version or the physical machine system itself.

When I first heard it, I thought it was a retarded version of the virtual machine, and later I thought I understood or the pattern. In the VM installed a play (seemingly only support 64bit Oh pro)

Docker's Chinese station has also started:Docker. CN


Docker English Station homepage has a simulation, can also be used to play: Click to open the link

1, open, basic format, see version.

After loading the input docker, you can see what commands you have, and git looks like it.

Docker version view versions.

2. Docker Search

The default is to pull the image from the official warehouse, you can build a private mirror library, built with Apt-key (Dockercn also has image source), the simulator does not have this thing.

The place is here:

/etc/apt/sources.list.d/docker.list

3. Download image

Docker pull +<username>/<repository>

Download it:


4, run the command in the mirror, this command is not related to your physical Linux system.

These actions will be recorded, pretending to be in effect (personal understanding)


The example in the tutorial is let's install a package, okay, then just load it up and look at the executed command.

Docker Ps-l saw the action


Then a new branch was uploaded:docker commit [ID] new name/branch


The new branch ID is returned

You can then execute the new command with the new branch.


Then Docker PS can look at all the containers that are running


Docker Inspect + ID allows you to view specific information about the virtual container.

Finally, you can use the Docker push command to upload to your container repository.


Common commands:

Docker

Docker run

Docker Search

Docker pull

Docker push

Docker PS

Docker Inspect



Docker Online Tutorial Learning Notes

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.