The first Docker book, chapter 4th uses Docker images and warehouse reading notes

Source: Internet
Author: User
Tags docker hub

The bottom of Docker is a boot file system, Bootfs.

The second layer is the root filesystem rootfs, located on the boot file system.

In the traditional Linux boot process, the root filesystem is first read-only and is switched to read-write mode when the boot finishes and the integrity check is completed. But in Docker, the root filesystem is always read-only, and Docker uses the federated loading technology to load more read-only file systems on the root filesystem layer. Federated loading refers to the simultaneous loading of multiple file systems at once, but only one file system can be seen outside. Federated loading overlays each layer of file systems so that the final file system contains all the underlying files and directories.

Docker makes such a file system mirror. One image can be placed at the top of another mirror. The mirror below becomes the parent image, and the bottom of the image is called the base image.

When Docker launches a container for the first time, the initial read-write layer is empty. These changes are referenced to this layer when the file system changes. For example, if you want to modify a file, the file is copied from the read-only layer below the read-write layer to the read-write layer. The read-only version of the file still exists, but it has been hidden by a copy of the file in the read-write layer. This mechanism is copied as a write-time.

Docker Images #查看所有的docker镜像

The local image is saved under/var/lib/docker, and all the containers are stored in the/var/lib/docker/containers

Docker pull Ubuntu #拉去镜像
Docker run-it--name container name Ubuntu:12.04/bin/bash #可以给镜像加上版本

Mirror split user and top-level mirroring.

Docker images Fedora #查看指定的镜像列表
Docker Search Puppet #查找指定的镜像

  

Build image

Docker login #登录 (domestic access to the Docker hub is so slow)

  

The first Docker book, chapter 4th uses Docker images and warehouse reading 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.