Install Docker In Debian 7 to virtualize A CentOS
Currently, docker supports only Ubuntu 12.04 + and Debian 8.0 Jessie (64-bit) operating systems and does not support Debian 7 Wheezy. Before Running Docker, Linux kernel must be ab
System version:Debian 8.3Problem: The remote API that adds Dcoker under Debian does not always open the network port.Process:Modify/etc/default/docker to add a rowdocker_opts= "-H 0.0.0.0:2376-h unix:///var/run/docker.sock"To restart Docker:Service Docker restartTo see if the port is open:lsof-i:2376 does not have any return.To view logs:Mar 12:44:32 docker1
Use CentOS 6.5 to create a Docker image for Debian 7 Wheezy
Docker Image Process notes for preparing Debian 7 Wheezy in CentOS 6.5.
The specific steps are not described in detail, as in the previous article:
The following is the procedure for the terminal to execute commands.
[Root @ localhost admin] # debootstrap -- a
is the CMD command, indicating the operation command when running the container.Dockerfile official documentation:Https://docs.docker.com/engine/reference/builder/Dockerfile best practices:Https://docs.docker.com/engine/userguide/eng-Image/dockerfile_best-practices/Docker official image dockerfile:Https://github.com/docker-library/docs2. From command
The from command is used to specify the basic image. The
Step 1: Change the update source to debian 6.0.
# Vi/etc/apt/sources. listDeb http://ftp.us.debian.org/debian/ squeeze mainDeb-src http://ftp.us.debian.org/debian/ squeeze main
Deb http://security.debian.org/squeeze/updates mainDeb-src http://security.debian.org/squeeze/updates main
Deb http://volatile.debian.org/debian
1 Background 1.1 Docker introductionDocker is a container engine project based on lightweight virtualization technology from Docker, the entire project is based on the go language and complies with the Apache 2.0 protocol. Today, Docker can quickly automate deployment of applications within the container, and can provide container resource isolation and security
and developing standard configuration methods.
LXC is positioned to replace traditional virtual machines and focuses on providing one operating system, such as Ubuntu and Debian. Docker is application-oriented, and officially advocates that a container is an application, focusing on the application. Therefore, docker also provides a unified packaging and deploym
Docker installation and sharing of common commands and sharing of common docker commands
Basic commands
1. To install docker in yum, the root permission is required.
Yum install docker
2. Start docker
Systemctl start docker. servi
-trusty main
In Ubuntu wily 15.10 deb https://apt .org /repo ubuntu-wily main
In Ubuntu xenial 16.04 (LTS) deb https://apt.dockerproject .org /repo ubuntu-xenial Main
Note: Docker does not provide packages for all schemas. You can find the built binary in https://master.dockerproject.org. To install Docker on a multi-schema system, add an element to the entry [arch=...] .
Docker Quick Start-common docker commands 1. Introduction to docker commands 1. Introduction to docker commands
You can run the sudo docker or sudo docker HELP command to view the docker
different sources, the latest Docker version is 1.9, the following actions
$sudo apt-get Install Apt-transport-https
$sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 36a1d7869245c8950f966e92d8576a8ba8
$sudo bash-c "Echo Deb Https://get.docker.io/ubuntu Docker main >/etc/apt/ Sources.list.d/docker.list "
$sudo apt-get update
$sudo apt-get install Lxc-
1 PrefaceSince its inception, Docker has led the technology boom in lightweight virtualization containers. In this trend, Google, IBM, Redhat and other industry leaders have joined the Docker camp. While Docker is still primarily based on the Linux platform, Microsoft has repeatedly announced support for Docker, from p
relatively simple, mainly based on namespace isolation5. Cgroup CPUs and Cpuset provide CPU functionality that is difficult to measure compared to KVM-based virtualization schemes (so DotCloud is mostly memory-charged)6. Docker management of disk is relatively limited7. Container is destroyed as the user process stops, and user data such as log in container is not collected
How does it fit?On the installation of a new thing, the most reliable o
collection is still in accordance with the Syslog or other old way, the mirror capacity is very large, the base image can reach 80M, which and Docker The idea was completely different, and the Alpine Linux distribution, as a lightweight Linux environment, was well suited as a docker base image, and Docker also recommended using Alpine instead of
[Linux] Debian downloads, installs, and graphic interfaces, and uses multiple images to kill cats and debian to kill cats.
Linux has many versions, which are rare compared with non-professional users. Unlike Windows systems, we know a little bit about it. for lower-configuration machines, we choose Windows XP Professional SP3 to use Windows 2003 Enterprise SP2 for Asp, at a very high level, Windows 2012 and
achieving this goal is a running environment called the Docker container, which is actually a LXC (Linux Containers) with a security attribute. Containers are created using Docker images, Docker images can be created manually by tapping commands, or they can be automated through dockerfiles.Note: The basics of Docker
and LXC (Docker implementation of the way virtualization) conflict, so you need to disable SELinux.Edit/etc/selinux/config, set two key variables. Selinux=disabledselinuxtype=targeted
2. Installing Docker
Ubuntu/debian using apt-get install Docker-ioCentos/rehl uses the yum install
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.