Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Docker commonly used commands Description     - Enable Intel Rapid Start in GNU / Linux (Linux)

- After installing Ubuntu 15.04, to do a few things (Linux)

- Linux installation and configuration curl command tool (Linux)

- Linux SU command security Suggestions (Linux)

- The strings in Python reside (Programming)

- Django how to generate content in non-HTML formats (Programming)

- Ubuntu 14.04 How to install Cinnamon 2.4.5 (Linux)

- Android annotation support (Support Annotations) (Programming)

- You need to know 12 Git High Command (Linux)

- xCAT error Unable to dispatch hierarchical sub-command to NORESOLUTION: 3001 (Linux)

- MySQL + Corosync + Pacemaker + DRBD build highly available MySQL (Server)

- Linux GCC 5.1.0 compiler installation (Linux)

- Four Methods of Self - Learning Linux (Linux)

- Java environment to build a number of issues (Linux)

- Introduction to Linux Shell (Programming)

- Ora-14450: attempt to access ah transactional temptable already in use (Database)

- CentOS x86 64bit upgrade to 2.7 Python2.6 (Linux)

- Custom Android UI template Comments (Programming)

- gzip, bzip2, xz, tar, zip compression, archive Detailed (Linux)

- Linux environment SSH login password instead of using the RSA Certificate (Linux)

 
         
  Docker commonly used commands Description
     
  Add Date : 2016-10-17      
         
       
         
  1, The daemon container and container how to interact, because seemingly used directly daemon type containers docker attache command directly die there, and shell command does not appear the container line, it is necessary to adopt the following ways:

The first step: the first container query, use the command: docker ps, following results were obtained:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

a40c6e58afbd mysql: 5.7 "/entrypoint.sh mysq 15 hours ago Up 15 hours 0.0.0.0:3306->3306/tcp db001

512013f5bd3a csphere / csphere: 0.11.2 "/ bin / csphere-init - 10 days ago Up 9 hours csphere-agent

631a4f91b2fb csphere / csphere: 0.11.2 "/ bin / csphere-init - 10 days ago Up 10 days 8086 / tcp, 27017 / tcp, 0.0.0.0:1016->80/tcp csphere-controller

Step two: for example, we are here to interact and id is a40c6e58afbd this container, use the command: docker exec -t -i a40c6e58afbd / bin / bash, you'll get the following results:

root @ a40c6e58afbd: / #

This is the container command line, we can here typing the command, and the general of linux commands.

2, how to view the information container, the container comes from the image, inside there are a lot of configuration information, if we want to see this information, you can use the following command

The first step: the first container query, use the command: docker ps, following results were obtained:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

a40c6e58afbd mysql: 5.7 "/entrypoint.sh mysq 15 hours ago Up 15 hours 0.0.0.0:3306->3306/tcp db001

512013f5bd3a csphere / csphere: 0.11.2 "/ bin / csphere-init - 10 days ago Up 9 hours csphere-agent

631a4f91b2fb csphere / csphere: 0.11.2 "/ bin / csphere-init - 10 days ago Up 10 days 8086 / tcp, 27017 / tcp, 0.0.0.0:1016->80/tcp csphere-controller

Step 2: Use the command: docker inspect a40c6e58afbd last parameter is the genetic container id.

The results returned by the content here is not to write too much, in fact, when this information is stored in the host linux hosts / var / lib / docker / containers directory, the directory names that have a lot of very long folder, then enter these folders can be seen in several documents, such as a container into the folder using the command: ls -l, you can see the following information:

rw ------- 1 root root 76749 Jul 24 08:44 a40c6e58afbda0199111a2a2ef0af7e8dd9be057a610ca5f4f30aa782a5d9155-json.log
-rw-r - r-- 1 root root 2263 Jul 23 17:10 config.json
-rw-r - r-- 1 root root 543 Jul 23 17:10 hostconfig.json
-rw-r - r-- 1 root root 13 Jul 23 17:10 hostname
-rw-r - r-- 1 root root 176 Jul 23 17:10 hosts
-rw-r - r-- 1 root root 237 Jul 23 17:10 resolv.conf
-rw-r - r-- 1 root root 71 Jul 23 17:10 resolv.conf.hash
     
         
       
         
  More:      
 
- CentOS installed JDK8 (Linux)
- PLSQL Developer synchronization table tools (Database)
- Ubuntu how to install and use Objective-C (Linux)
- MySQL DATE_FORMAT () function (Database)
- Hibernate in profile (Database)
- Linux Command Tutorial: du command to view disk space (Linux)
- To setup NOTRACK and TRACK of conntrack in iptables (Linux)
- Java String type time compare the size (Programming)
- Using IntelliJ IDEA Import Spark Spark latest source code and compile the source code (Linux)
- Do not enter password login ssh (Server)
- Let 32 Linux / CentOS system to support more than 4G memory (Linux)
- Shell scripts get a snapshot of the page and generates thumbnails (Linux)
- MySQL multi-master multi-cluster deployment uses alive Galera (Database)
- OpenGL Programming Guide (8th edition of the original book) - compute shader (Programming)
- Radius server setup under CentOS (Server)
- How to contribute code on GitHub uploads (Linux)
- Lua study notes under ubuntu (Linux)
- KVM add virtual disks (Linux)
- How to install Visual Studio Code on Ubuntu (Linux)
- How to run Docker client in Windows operating system (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.