Resolve Legacy Issues:(1) After booting the VGA has "Linux login:" Login prompt, and the serial port side does notWorkaround: Change ttys0.conf to the following:[Email protected]:~$ cat/etc/init/ttys0.conf # ttys-getty## This service maintains a Getty on tty1 from the point the SY Stem is# started until it is shut down Again.start on stopped RC runlevel=[2345] and ( Not-container or container CONTAINER=LXC or (2) VGA o
background:There's been a lot of information about Docker coming out of the infoq that I've been focusing on lately, and I've inadvertently opened up a few things, and I think Docker is a fascinating technology, though I haven't fully understood what Docker is. Also did not search the very good study material, here only briefly records own smattering, prepares for a rainy-out.Docker knows:A random search on the web of Docker, a variety of newspapers to cover the ground, but all is the same, noth
put it bluntly, a process that is suspended in the Oom-waitqueue queue can continue to run only if more memory is available in the Cgroup.Under_oom 0This value is only used to see if the current Cgroup state is already oom, and if so, this value will be displayed as 1. We manage the behavior after Cgroup memory overrun by setting and monitoring these two values in this file. In the default scenario, if you use swap, then your cgroup limit memory after the most common exception effect is IO high
Docker main >/etc/apt/sources.list.d/docker.list# then import the repository keyApt-key adv--keyserver hkp://p80.pool.sks-keyservers.net:80--recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9# Install DockerApt-get UpdateApt-get install-y Lxc-docker
The Docker version currently installed from the apt source of Docker is 1.7.1. 1.2 CurlinstallationWebsite https://get.docker.com provides curl-able installation script install.sh, which we can Curl
1. Package installation via the system (may not be the latest version) $ sudo apt-get update$ sudo apt-get install-y Docker.io$ sudo ln-sf/usr/bin/docker.io/usr/local/bin/docker$ sudo sed-i ' $acomplete-F _docker Docker '/etc/bash_completion.d/docker.io Use the following command to view version informationsudo docker-version ResultsClient version:1.0.1Client API version:1.12Go version (client): go1.2.1Git commit (client): 990021aServer version:1.0.1Server API version:1.12Go version (server): go1
lxc Rinse
Git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn des Ktop-base
plymouth-themes The
following NEW packages would be installed:
aufs-tools Cgroupfs-mount Docker.io git git-man libapparmor1 liberror-perl libnih-dbus1 libnih1 makedev mountall Plymouth
0 upgraded, newly installed, 0 to-remove and not upgraded.
Need to get 9,986 KB of archives.
After this operation, 47.2 MB of
Ubuntu Precise 12.04 (LTS) (64-bit), this version is recommended, and other versions refer to the official installation manual.
1, the installation of DockerFirst, Docker officials say it's best to run more than 3.8 of the Linux kernel, so kernel upgrades are needed first
# Install the backported kernel
sudo apt-get update
sudo apt-get install linux-headers-generic-lts-raring
# reboot
sudo reboot
Add key for Docker warehouse:
Copy Code code as follows:
sudo apt-
(LXC)
The launch of the Docker container can be implemented at the second level, which is much faster than the traditional virtual machine approach
Docker is highly utilized for system resources and can run thousands of Docker containers on a single host
The following picture compares the differences between Docker and traditional virtualization, and the visible container is virtualized at the operating system level, directly reusing the local hos
ubuntu-xenial Main
7. Re-perform the update operation and delete the old repo# Apt-get Purge Lxc-docker //No installation, skip
8. See if the correct version is available# Apt-cache Policy Docker-engine
As shown in figure:9. From the beginning of the 14.04 version Docker recommended installation Linux-image-extra# Apt-get Install linux-image-extra-$ (uname-r)
10. Install Docker# Apt-get Update
# apt-get Install Docker-engine # service Docker
replace the Lxc,libcontainer and Linux system interaction diagram as follows:
Image source: Docker 0.9:introducing execution drivers and Libcontainer 1.5 namespace "namespaces" pid namespace
The process of different users is separated by PID namespace, and the same PID can be used in different namespace. Has the following characteristics: The PID in each namespace is a process with its own pid=1 (similar to the/sbin/init process) processes in each na
=172.17.0.8
db_port_6379_tcp_port=6379
path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ Sbin:/bin
pwd=/
shlvl=1
home=/
container=lxc
_=/usr/bin/env
After version 0.11, the alias for link REDIS:DB generates the corresponding IP mappings in/etc/hosts:
root@6541a75d44a0:/# cat/etc/hosts172.17.0.3 6541a75d44a0172.17.0.2 db
What is vethxxxx
# View bridge information
$ sudo brctl show bridges name bridge ID STP enabled
Docker by default is the Linux with the Network Bridge implementation, in fact, the Openvswitch project as a mature virtual switch implementation, with a richer function. Personally, the future Docker will necessarily support Openvswitch as its default network bridge implementation. Interested students welcome the following steps to the taste. Environment
Test in the Ubuntu 14.04 system. The operation process also applies to Redhat/centos series systems, but few commands and configuration files
period. It has built the service framework of one of the most widely used core middleware in Ali, and has built Ali's HBase team, and has developed to today HBase is Ali's most important nosql product; build Ali based on LXC virtualization system, and cluster resource management system, Continuously reduce the cost of Alibaba investment in machine resources; design and lead the team to achieve a milestone in the history of Alibaba's technology develo
centos6.5 operating system, Docker learning notes.
Upgrading the centos6.5 kernelThe official documentation requires a minimum of 3.8 Linux kernel, and Docker can only run on 64-bit systems. Because the kernel version of RHEL6 and CentOS6 is 2.6, you must upgrade the kernel first.1, yum installation with Aufs module of the 3.10 core;
CD/ETC/YUM.REPOS.D
wget http://www.hop5.in/yum/el6/hop5.repo
yum Install Kernel-ml-aufs Kernel-ml-aufs-devel
2, modify grub's main configuration file/etc/grub.con
The following learning notes are collated from "Docker Development Practice" http://www.ituring.com.cn/book/1631
Ubuntu Install Docker Fedora Install Docker Redhat install Docker verify Docker is installed successfully
Ubuntu installation Docker
Install Docker directly from the software warehouse
$ sudo apt install Docker.io
Or install the official latest edition of Docker
Add apt HTTPS support
$ sudo apt install Apt-transport-https
Add the public key of the Docker library to local apt
$ sud
will help you really understand whether you really need it.
This article enumerates the five major Docker from the Java perspective. But let's start with some background information. In order to better understand Docker, we consulted the fewbytes Avishai Ish-shalom, he has a wealth of Docker experience, but also devops days meeting organizers. We have enumerated these misunderstandings with him.
Main misunderstanding
1. Docker is a lightweight virtual machine
This is the most important misu
Sysdig is the Sysdig cloud developed a powerful tool based on the Lua language, as described on the site's home page, "Sysdig is open source, System-level exploration:capture system State and activity from a running Linux instance, then save, filter and analyze. The IT as Strace + tcpdump + lsof + awesome sauce. ", Sysdig is equivalent to Strace + tcpdump + lsof + htop + iftop and other tools of the collection, in addition to its containers such as Docker, CoreOS,
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.