Docker init started, dockerinit

Source: Internet
Author: User

Docker init started, dockerinit

# Yum install

WgetHttp://fedora.mirror.nexicom.net/epel/6/x86_64/epel-release-6-8.noarch.rpm

Yum-y install epel-release-6-8.noarch.rpm

Yum-y install docker-io


# Wget install

Yum install-y libcgroup lxc

Service cgconfig start

The wget https://get.docker.io/builds/Linux/x86_64/docker-latest-O docker


# Source install can only be compiled on ubuntu currently

Yum install-y libcgroup lxc

Service cgconfig start

Sudo git clone https://github.com/docker/docker.git

Sudo make binary

Cd bundles/


# Start docker daemon

Sudo <path to>/docker-H tcp: // 127.0.0.1: 2375-H unix: // var/run/docker. sock-d &

Docker-H unix: // var/run/docker. sock-d &

# Do not use iptables

Setsid/home/work/app/docker-H unix: // var/run/docker. sock -- iptables = false-d &

# Image

Docker pull centos

Docker images


# Run

Docker images

REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE

Centos centos6 0b443ba03958 6 weeks ago 297.6 MB

Centos latest 0b443ba03958 6 weeks ago 297.6 MB

Centos 6.4 539c0211cd76 14 months ago 300.6 MB

# Use image id

Docker run-I-t 539c0211cd76/bin/bash

# Mount disk

Docker run-d-v/home/work/data/mysql3306:/home/work/data-t a31d9467fdda/bin/bash


# Make image

Yum-y install febootstrap


Febootstrap-I bash-I wget-I yum-I iputils-I iproute centos6/home/centos6-doc http://mirrors.aliyun.com/centos/6.5/ OS /x86_64/


Cd centos6-doc/

Tar-c. | docker import-centos63-bash

Bytes


# CONTAINER list

Docker ps-


# Use container

Docker ps-

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

875d66ee0899 centos63-bash: latest/bin/bash 3 minutes ago Exited (130) 24 seconds ago insane_fermi


Docker start 875d66ee0899


Docker attach 875d66ee0899

# Output and input

Docker save IMAGENAME | gzip> img.gz

Gunzip-cd img.gz | docker load


# Remove container list

$ (Docker rm $ (docker ps-a-q ))



# Create a new image after installing the configuration in the container

Docker commit -- author = "tudou@ B2C .xiaomi.com" -- message = "centos65-mysql55" dd7b8021331b


# Docker container ulimit

You need to modify the host machine and restart docker daemon.



What is form init in vfp?

Form init is a form initialization event,
This event is only after the init of the form control.
Generally, you can call the menu or set the attributes of a Form Control in the form INIT event.


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.