Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Docker commonly used commands Description     - Fedora 22 users to install the VLC media player (Linux)

- XenServer virtual machines installed in dual-card configuration (Server)

- Protobuf compiled and used on the Ubuntu 14.04 (Programming)

- Based Docker build stand-alone high-availability cluster Hadoop2.7.1 Spark1.7 (Server)

- General Linux interface server parameter tuning (Server)

- How to use secure FTP file transfer (Server)

- CentOS 5.5 kernel upgrade installation iftop (Linux)

- Linux bash: scp: command not found the problem (Linux)

- wget command usage Explanation (Linux)

- Linux commands to access the cheat sheet (Linux)

- Using the Linux folder wc statistics number of lines of code for all files (including subdirectories) (Linux)

- Binary search is really easy as you think you do (Programming)

- Loop arrays in C language is not easy to find a bug (Programming)

- Introduction to Linux Shell (Programming)

- Linux basic articles of the boot process (Linux)

- Linux System Getting Started Learning: Debian download, installation and graphical interface (Linux)

- Java is simple to read and write HDFS Demo (Programming)

- GRUB and Linux system repair (Linux)

- Redhat 5 prohibit IPv6 (Linux)

- Linux common network tools: hping Advanced Host Scan (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:      
 
- Lazarus for Raspbian installation (Linux)
- How to manage and use Logical Volume Management LVM in Ubuntu (Linux)
- How linux network security configuration (Linux)
- Linux script to copy the folder to all folders with the same name (Linux)
- CentOS6.5 setup Oracle 11gR2 startup (Database)
- CentOS7 + Redis Live Installation and Configuration (Linux)
- 8 Git tips (Linux)
- Linux Samba server-side structures and the use of the client (Server)
- To install the latest version of Shotwell 0.18 under Ubuntu (Linux)
- Oracle () trunc function usage (Database)
- grep command Series: How to Use the grep command in Linux / UNIX (Linux)
- Export error: ORA-04063: package body dmsys dbms dm model exp has error (Database)
- A brief introduction to some important Docker commands (Server)
- To compile and install OpenCV-2.3.1 FFmpeg-2.1.2 under CentOS (Linux)
- Linux FTP setting file description (Server)
- WEB-based Android Remote Tools Python implementation (Programming)
- Ubucompilator-Ubuntu, Debian, Linux Mint created deb package of graphical tools (Linux)
- Basic data types JavaScript type system and the type of packaging (Programming)
- shell-like program (Programming)
- MySQL full-index scan bug (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.