Docker installed in Linux __linux

Source: Internet
Author: User
Tags iptables docker run
Ready to

Download

wget Https://get.docker.com/builds/Linux/x86_64/docker-latest-O/usr/bin/docker

Kernel kernel low start:

Yum Install Kernel-ml-aufs Kernel-ml-aufs-devel

Ubuntu installation Docker

sudo apt-get install Docker

sudo service docker start

sudo docker run-d-P 8082:80 daocloud.io/daocloud/dao-2048

CentOS Installation Docker

Installation

Yum Install Docker (this version is older 1.5)

Yum Install Docker-io

Start

sudo./docker-d &

sudo service docker start

power-on Boot

sudo chkconfig Docker on

Shutdown (requires the service to be turned off before upgrading)

Killall Docker

To configure Daocloud mirroring:

/etc/default/docker

Docker_opts= "--registry-mirror=http://aad0405c.m.daocloud.io"

Docker-machine SSH Default
sudo sed-i "s| Extra_args= ' | extra_args= '--registry-mirror=http://b5c2dd1f.m.daocloud.io |g '/var/lib/boot2docker/profile
Exit
Docker-machine Restart Default

Replace the aad0405c with the mirror address link name that you created for you after you registered on Daocloud.

Docker Pull Glot/java

The bottom of the firewall is to use iptables for data filtering, based on iptables, which may conflict with Docker. When the FIREWALLD is started or restarted, the Docker rule will be removed from the iptables, thus affecting the normal work of Docker. When you are using SYSTEMD, FIREWALLD will start before Docker, but if you start or reboot Firewalld after Docker startup, you will need to restart the Docker process.

Blog Address: http://blog.yoqi.me/archives/3842

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.