Install Docker In Debian 7 to virtualize A CentOS

Source: Internet
Author: User
Tags docker hub

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 above 3.8, Go must be over 1.2, and Debian 7 must upgrade the kernel and compile the new version of Go to install. If OpenVZ VPS is used, the kernel cannot be upgraded. However, since Docker 0.8, it is no longer dependent on this. As long as the Linux kernel version is 2.6.32-431 or above.

PS: Docker 1.0 officially released! Version 1.0 contains many new features, which is also the first product version of Docker. From today on, You will always hear a new concept-Docker as a platform. Its components include the Docker engine, container runtime and packaging tools, and Docker Hub, this is a cloud-based collaboration, content and workflow Automation Service.

Confirm kernel version

Uname-r

Use the official ubuntu software source, which is compatible with debian 7:

Echo deb http://get.docker.io/ubuntu docker main | sudo tee/etc/apt/sources. list. d/docker. list
Sudo apt-key adv -- keyserver keyserver.ubuntu.com -- recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
Sudo apt-get update
Sudo apt-get install-y lxc-docker

Four-line command, Docker and installed. Create a CentOS virtual system as follows:

Docker pull centos
Docker run-I-t centos/bin/bash

Now we have entered the virtual CentOS system. Verify that:

Cat/etc/RedHat-release


Common Errors

Root @ debian :~ # Sudo apt-get install-y lxc-docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lxc-docker

Your system is 32-bit. Currently, docker only supports 64-bit operating systems.

Root @ debian :~ # Docker-d
23:51:19 WARNING: You are running linux kernel version 2.6.32-042stab088. 4, which might be unstable running docker. Please upgrade your kernel to 3.8.0.
[/Var/lib/docker | d37c2fff] + job serveapi (unix: // var/run/docker. sock)
[/Var/lib/docker | d37c2fff] + job initserver ()
[/Var/lib/docker | d37c2fff. initserver ()] Creating server
2014/06/09 23:51:19 Listening for HTTP on unix (/var/run/docker. sock)
[/Var/lib/docker | d37c2fff] + job init_networkdriver ()
[/Var/lib/docker | d37c2fff. init_networkdriver ()] creating new bridge for docker0
Error creating bridge: package not installed
[/Var/lib/docker | d37c2fff]-job init_networkdriver () = ERR (1)
Error creating bridge: package not installed
[/Var/lib/docker | d37c2fff]-job initserver () = ERR (1)
2014/06/09 23:51:19 Error creating bridge: package not installed

Your kernel version is too low. Make sure that the Linux kernel version is 2.6.32-431 or later.

Install Docker in CentOS 6/7 Series

Detailed explanation of the entire process of building Gitlab CI for Docker

Docker installation application (CentOS 6.5_x64)

What is the difference between Docker and a normal Virtual Machine?

Use MySQL in Docker

Docker will change everything

Docker installation application (CentOS 6.5_x64)

Docker details: click here
Docker: click here

Related Article

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.