facilitate the use of virtual machine settings.With a virtual machine like a machine, you can start working on docker. It is relatively simple to install the docker environment. We only need to follow the steps in this link (Installation on Ubuntu, although you are not familiar with some operation commands, you do not need to be overly nervous. We only want to i
configurations such as hardware and running environments, makes the migration of applications very simple.
Comparison of >docker and traditional virtualization technologies
Compared with the traditional virtual machine technology, Docker resources occupy less, start faster, greatly facilitate the deployment of the project and operational dimension.
IMAGE ID CREATED VIRTUAL SIZEubuntu 14.04 c4ff7513909d 5 weeks ago 225.4 MB...$sudo docker save -o ubuntu_14.04.tar ubuntu:14.04
Using Docker load, you can import previously exported tarball to the local mirror library using the following method:
$ sudo docker load --input ubunt
Where the [] Enclosed as optionalDocker version View the release number of Docker, including client, server, dependent go, etc.Docker Info View System (Docker) level information, including managed images, containers number, etc.Docker search Docker pull Docker push Docker Pu
AboveDocker source code analysis-docker daemon startupThis section describes how to start the docker daemon process. Docker daemon can be considered as a docker running carrier of the server, and the carrier that actually sends a request about the
namespace prior to the Docker 1.10 release. That is, by default, the user of the process within the container is the root user on the host, so that when the file or directory on the host is mapped to the container as volume, the process in the container actually has almost all the permissions of the root to modify the directory on the host, which will have a Big security issues.Example:
Start a co
the read-only image (using the unionfs mentioned earlier ), applications can run on this layer.
Internal Mechanism for running a container
With docker programs or APIs, The docker client notifies docker daemon to run a container:
$ sudo docker run -i -t ubuntu /bin/bash
Disassemble the preceding command:Docker clie
1. Set Boot upIf you want Docker-to-start at boot, you should also:$ sudo systemctl enable docker2. Start, stop, restart$ sudo systemctl start docker$ sudo systemctl stop Docker$ sudo systemctl restart Docker3. Turn on local and r
.>>> start the container and modify the mirrorOnce the image is downloaded locally, you can use Docker to run it,Start the container with the following command arguments,Docker run -I: Indicates that the container is running in "interactive mode"-T: Indicates that the container will enter its command line when it is st
", enter the basic information, including the name and frequency of monitoring, you can see the specific deployment steps.The second step is to install the agent and Docker plugin on the monitoring machine.L first download, unzip and start Sendproxy,sendproxy is a proxy, as the sending engine, can be deployed in the LAN, the monitoring information of the machine in the LAN is efficiently transferred to the
Future DBA application may be part of the other department of Docker, there seems to be engaged in a similar Docker platform management system, so, I also want to try to write a simple Doker management platform. As a start I first engage in Docker Api,docker official website
In front of our lab environment, only one Docker host container is running on this host. However, in a real environment, there will be multiple host containers that start, run, stop, and destroy related containers in these hosts, regardless of whether they are located in the same host.How can we manage such a multi-host environment efficiently?The first problem we faced was installing and configuring
virtual machine approach. Second, Docker is highly utilized for system resources and can run thousands of Docker containers simultaneously on a single host.In addition to running applications, the container does not consume any additional system resources, which makes the performance of the application very high and the overhead of the system as small as possible. Traditional virtual machines run 10 differ
Namespace, but share a Network Namespace with the host. The container will not Virtualize its Nic, configure its own IP address, and so on, but use the host's IP address and port.
For example, we start a Docker container with web applications in host mode on the 10.10.101.105/24 host and listen to port tcp80. When we execute any ifconfig-like command in the container to view the network environment, the in
, and the customer's operating system does not need to be modified. For example, VMware Workstation, VirtulBox, QEMU and other hardware-aided virtualization. Hardware AIDS Support processing sensitive commands to achieve full virtualization. The client operating system does not need to be changed, such as Xen, KVM, and other virtualization features. Only some hardware resources are virtualized, and the client operating system needs to be changed. Super virtualization. Some hardware interfaces ar
usually not the latest version of Docker,If you want to install the latest version, you can go to the Docker website to download the installation.> Create a first docker imageThe general process for building a docker image is to create a container first,and modify the image in the container, configure the relevant env
between Docker and traditional virtualization methods. It can be seen that containers are virtualized at the operating system level and the operating system of local hosts is reused directly, the traditional method is implemented on the hardware layer.Install and start docker
1. Switch to the root user su and press enter and enter the root password.
Install
Create a Docker Private library (Docker registry)Blog Category:
Docker
My goal is still no internet installation, the deployment of the internal Docker Private library, the current Docker image acquisition or need the Internet, the downloaded
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.