Docker application container on centos6 system

Source: Internet
Author: User
Tags centos jboss aliyun

You only need to perform the following operations:
1. # cd/etc/yum. repos. d/
# Wget-O/etc/yum. repos. d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
# Rpm-ivh http://mirrors.aliyun.com/epel/6Server/x86_64/epel-release-6-8.noarch.rpm
2. yum update

# Yum clean all & yum makecache & yum update-y
3. Install docker and start the docker service
# Yum install docker-io
# Service docker start

However, such a docker file system is faulty,
[Root @ jboss ~] # Docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
Pool Name: docker-253: 0-5112199-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file:/dev/loop0
Metadata file:/dev/loop1
Data Space Used: 305.7 MB
Data Space Total: 107.4 GB
Metadata Space Used: 733.2 kB
Metadata Space Total: 2.147 GB
Udev Sync Supported: true
Data loop file:/var/lib/docker/devicemapper/data
Metadata loop file:/var/lib/docker/devicemapper/metadata
Library Version: 1.02.89-RHEL6 (2014-09-01)
Execution Driver: native-0.2
Kernel Version: 2.6.32-358. el6.x86 _ 64
Operating System: <unknown>
CPUs: 16
Total Memory: 70.75 GiB
Name: jboss

Note: Data file:/dev/loop0. docker's file storage adopts the loop block device mode for mounting, reading, and writing. It will be very troublesome to resize in the future.

So the operation is performed after Kernel 3.10 is upgraded.

Upgrade the kernel in four steps:

# Cd/etc/yum. repos. d
# Wget http://www.hop5.in/yum/el6/hop5.repo
# Yum install kernel-ml-aufs-devel-y
# Modify grub. conf to start kernel 3.10 & reboot

Continue!

Containers: 0
Images: 0
Storage Driver: aufs
Root Dir:/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 0
Execution Driver: native-0.2
Kernel Version: 3.10.5-3. el6.x86 _ 64
Operating System: <unknown>
CPUs: 24
Total Memory: 11.81 GiB

Storage Driver: Have you seen aufs?

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.