Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS6.5 installation Docker     - Build Python3.4 + PyQt5.5.1 + Eric6.1.1 development platform under Mac OS X 10.11.1 (Server)

- Top command: the Task Manager under linux (Linux)

- Linux operating system security management skills notes (Linux)

- Linux System Administrator common interview questions and answers 30 (Linux)

- How to manage start-up applications in Ubuntu (Linux)

- Linux novice common commands (Linux)

- Ubuntu 12.04 installed OpenCV 2.3.1, binary image (Linux)

- Java Concurrency -volatile keywords (Programming)

- Ubuntu 10.04 to Ubuntu 10.10 Upgrade (Linux)

- MongoDB Study Notes (1) - Install MongoDB on Windows systems (Database)

- Use GLOBK batch command network adjustment (Linux)

- Commonly used Linux system camouflage method (Linux)

- How to back up Debian system backupninja (Linux)

- The YUM package management under Linux (Linux)

- Linux SU command security Suggestions (Linux)

- redis configuration in detail (English) (Database)

- Ceph single / multi-node installation summary Powered by CentOS 6.x (Server)

- Character Encoding notes: ASCII, Unicode and UTF-8 (Linux)

- Brief Linux commands (Linux)

- C # how to generate a folder or file automatically rename (Programming)

  CentOS6.5 installation Docker
  Add Date : 2018-11-21      
  The author here is CnetOS6.5 system

Start the installation daoker Tour:
[Root @ localhost ~] # uname -r
[Root @ localhost ~] # cat / etc / issue
CentOS release 6.5 (Final)
Kernel \ r on an \ m

Note that other sources may cause your kernel version inconsistent and docker, need to upgrade the kernel to 3.x.

[Root @ localhost ~] # rpm -ivh http://dl.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
warning: /var/tmp/rpm-tmp.JN76fI: Header V3 RSA / SHA256 Signature, key ID 0608b895: NOKEY
Preparing ... ########################################### [100% ]
  1: epel-release ########################################### [100 %]
[Root @ localhost ~] # rpm --import / etc / pki / rpm-gpg / RPM-GPG-KEY-EPEL-6

[Root @ localhost ~] # yum -y install docker-io

Start and set at startup

[Root @ localhost ~] # service docker start
Starting cgconfig service: [OK]
Starting docker: [OK]
[Root @ localhost ~] # chkconfig docker on

Get cnetos Mirror

[Root @ localhost ~] # docker pull centos: latest
centos: latest: The image you are pulling has been verified
511136ea3c5a: Pull complete
5b12ef8fd570: Pull complete
34943839435d: Downloading [===>] 18.38 MB / 232.5 MB 1h7m49s

# Official installation docker docker pull imagename download from index center, imagename is the image name, such as docker pull Ubuntu is to download the base ubuntu and the tag is latest.

We can also search for Fedora and Ubuntu operating system based containers.

[Root @ localhost ~] # docker search ubuntu
[Root @ localhost ~] # docker search fedora

Docker View Mirror
[Root @ localhost ~] # docker images centos
centos latest 34943839435d Less than a second ago 224 MB

Run Run shell docker
[Root @ localhost ~] # docker run -i -t centos / bin / bash
[Root @ 2ce733141ece /] #
[Root @ 2ce733141ece /] #
[Root @ 2ce733141ece /] #
[Root @ 2ce733141ece /] #

Stop the container

[Root @ localhost ~] # docker stop < CONTAINER ID>

Remove all containers

docker rm $ (docker ps -a -q)

See docker sub-command, direct or complete knock docker docker help can
Common Commands

To summarize commonly used commands:

Where < > width up parameters is required, [] wide up is optional

See docker docker version version number, including client, server, and so dependent on the Go
docker info View System (docker) level information, including the management of images, containers and number
docker search image search in the docker index
docker pull docker registry server from the drop-down image
docker push a push to the image repository or registry
docker push: TAG above, specify the tag
docker inspect or see the underlying image information of container
docker images TODO filter out the intermediate image layers (intermediate image layers what is)
docker images -a list all images
docker ps default display the running container
docker ps -l displays the last created container, including not running
docker ps -a displays all container, including not running
See docker logs container logs, some of which is executing the command output
docker rm delete one or more container
docker rm `docker ps -a -q` remove all container
docker ps -a -q | xargs docker rm above, remove all container
docker rmi delete one or more image
docker start / stop / restart Start / Stop / Restart container
docker start -i to start a container and enter interactive mode
docker attach attach a running container
docker run using the image to create container and execute the appropriate command, and then stop
docker run -i -t / bin / bash to create a container using the image and enter interactive mode, login shell is / bin / bash
docker run -i -t -p container port will be mapped to the host port
docker commit [repo: tag] will solidify a container as a new image, behind the repo: tag optional
docker build
 Looking Dockerfile under the path named path configuration files, use this profile to generate a new image
docker build -t repo [: tag] Ibid., you can specify the repo and optional tag
docker build - dockerfile using the specified configuration file, docker stdin way to get content, use this profile to generate a new image
See which docker port local port mapped to the designated container port, in fact, can be seen with a docker ps
- How Linux Log Analysis (Linux)
- Linux environment variables inside (Linux)
- Bash job control (Linux)
- Use the DBMS_SCHEDULER package to manage scheduled tasks (Database)
- MySQL query optimization: profile function (Database)
- Let CentOS perform PPPoE dial-up, ADSL can be used in a network environment! (Linux)
- Python implementation Bursa transition model (Programming)
- Android Scroller call mechanism and the relationship of computeScroll (Programming)
- Simple Linux file system - df, du, ln (Linux)
- Linux rpm command Detailed (Linux)
- Fragment Android developers learning to resolve (Programming)
- Differential test piece using MongoDB performance YCSB (Database)
- To compiler and install MariaDB-10.0.20 under CentOS 6.6 (Database)
- Ubuntu U disk do not have write privileges can only read but not write (Linux)
- Install MATE desktop environment adjustment tools Mate Tweak 3.3.6 (Linux)
- Let's Encrypt with semiautomatic into Nginx configuration https (Server)
- Oracle archive log full cause abnormal slow database performance (Database)
- Using Ruby to build a simple HTTP service and sass environment (Server)
- Btrfs file system creation and their characteristics in Linux (Linux)
- MongoDB Installation under CentOS 6.6 (Database)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.