This weekend experience a bit of a fire Docker technology, simple to record their own study notes.What is >docker for?Docker is an advanced container engine based on the Linux container (Lxc-linux container), developed based on the Go language,The source code is hosted on Github and complies with the APACHE2.0 protocol open source. The goal of
I have the opportunity to build a Docker micro-service architecture in my current job, a lot of people will share their experience of using Docker, I think I will be no exception. So I've summed up some of the things that you might use in your daily use of Docker.
1. Deployment of multiple Docker instances on a single
When you install Kubernetes on the server, there is a problem when you perform the following command installation:
Yum install-y Etcd kubernetes
Error: Docker-engine conflicts with 2:docker-1.12.6-68.gitec8512b.el7.centos.x86_64
The detailed error description is as follows:
Workaround: Because Docker is installed automatically when the kubernetes is installed,
Background:While using Docker, there is no specific configuration of the Docker network, but using the network in Docker after a short period of time becomes very slow, curl a network request to about 20s, if curl when specifying IPV4-4 time is 5s. The same URL for Curl on host host is 0.01s.
Workaround:Then, in the official
Tags: RDA parameter main each pwd better put string nal1: Build docker-based MySQL, reference Mac will use brew-installed MySQL instead of Docker to perform 2: Build based on docker?php image In the current directory, set up the Dockerfile, the content is as follows From Php:7.0-cli maintainer Terry Zhang 3. Create a PHP image
The difference between Docker and Docker machineDocker is an application of the Client-server architecture, and there are Boshi: Docker Engine. Docker is just a nickname for Docker Engine, and of course Docker has other meanings,
the difference between Docker and Docker machineDocker is an application of the Client-server architecture, and there are Boshi: Docker Engine. Docker is just a nickname for Docker Engine, and of course Docker has other meanings,
Due to the installation of Dockerce at the time of downloading the official website of the long-term timeout situation, so in the installation of Docker need to change the download image to the domestic mirror library. So there's the Aliyun Mirror library.
Follow the steps in Aliyun when installing CentOS:
# step 1: Install some of the necessary system Tools sudo yum install-y yum-utils device-mapper-persistent-data lvm2 # step 2: Add software source
Prerequisites for Linux installation Docker:Must be a 64-bit CPU-architected computer, Docker currently does not support 32-bit CPUs, running Linux3.8 or later kernel, CentOS kernel must be no less than 3.10; the kernel has to support an appropriate storage driver, which can be device Manager, Aufs, VFS, Btrfs, and one of the default driver device mapper; The kernel must support and open the Cgroup and namespace namespace features.
Check Prerequisites
This is a creation in
Article, where the information may have evolved or changed.
1, about TIDB
Tidb is inspired by Google's F1 and Google Spanner, TIDB support features that include traditional RDBMS and NoSQL.SQL fully supports MySQL, while others are also a distributed database.What Sub-Library sub-table are weak, this direct division, super convenient. And it's open-source.Is the domestic technology of large Bezoar Dongxu company Pincap developed.It was the man who wrote Codis before.Htt
This is a creation in
Article, where the information may have evolved or changed. As mentioned in the previous article
API ServerNeed to set
HTTPhandler function:
......server.SetHandler(api.NewPrimary(cl, tlsConfig, statusHandler{cl, nil, nil}, c.GlobalBool("debug"), c.Bool("cors")))......
api.ServerThe structure is defined as follows:
// Server is a Docker API server.type Server struct { hosts []string tlsConfig *tls.Config dispatcher *di
This is a creation in
Article, where the information may have evolved or changed.
Docker daemondocker client swarmthe handler function that initializes the response-related command is located at api/server/router/swarm/cluster.go :
Buildrouter is a router to talk with the build Controllertype swarmrouter struct {backend backend routes []rout Er. route}//Newrouter Initializes a new build Routerfunc Newrouter (b backend) router. Router {r: = swarmrouter
Generate a certificate of your own signatureThe process of generating the signature needs to be prompted to enter some parameters, you need to note that when common name needs to enter a domain name that you need, if the internal domain name remember when you need to modify the hosts.Mkdir/data/certs-pCd/data/certsOpenSSL Req-newkey rsa:4096-nodes-sha256 \-keyout domain.key-x509-days 365-out DOMAIN.CRTRunning Docker registry ImagesDocker run-d-P 443:5
The Springboot project is a simple thing to publish to the server, but there are some potholes that need to be noticed in the Tomcat container that is posted to the Docker boot on the server.
Here's a complete introduction: Publish the Springboot Web project to the Tomcat container that is launched in Docker.
Spring Project Publishing, refer to: Docker---(3)
Apiserver installs the deployment in a highly available manner. This article is attached to a "Kubernetes1.9 production environment high available practice –002-apiserver high Availability Installation Deployment".
In this article, we focus on how to install Docker in node nodes and the configuration of Docker.The configuration of the Kubernetes node is discussed in the next section.
This article in a lot of articles are relatively simple to write. We
Docker Introduction
Docker is an open source application container engine that allows developers to package their apps and dependencies into a portable container, and then publish it to any popular Linux machine or virtualization. Containers are completely using the sandbox mechanism, and there will be no interface between each other.
Docker official w
Basic installation steps Ubuntu Docker installationDocker supports the following Ubuntu versions:
Ubuntu precise 12.04 (LTS)
Ubuntu trusty 14.04 (LTS)
Ubuntu Wily 15.10
Other updated versions ...
Pre-conditionsDocker requires an Ubuntu system with a kernel version higher than 3.10 to check the prerequisites on this page to verify that your Ubuntu version supports Docker.View your current kernel version with the
Basic Docker ImageWhat is Docker?
Docker is an improved container technology. The specific "improvement" is embodied in the fact that Docker introduces an image to the container, so that the container can be created from a pre-defined template (images), and the template is still layered.Features that
Ctrl + P + Q back to host shell, container detach state
Create a container in which to run the Bash app: sudo docker run-t-i Ubuntu:12.04/bin/bash
List mirrors: Docker images/image ID uniquely identifies a mirror
Create and run the Image: Docker run-t (Assigning a pseudo-TTY)-I (interactive mode) Ubuntu:12.04/bin/bashUbuntu is the warehouse name12.04 is tag
$ sud
Docker Practical Guide: containerized a python web AppProvide Zstack communityObjectiveIt is a common and scary thing that Web applications can be exploited by attackers to seize the entire host's permissions at any time. For greater security, there is a need to isolate the different applications (especially if they belong to different users), but the implementation of this isolation has always been a challenge. So far, there have been many implementa
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.