Docker-Compose参数检索

2019-04-05 01:25:23
Define and run multi-container applications with Docker.

Usage:
  docker-compose [-f <arg>...] [options] [COMMAND] [ARGS...]
  docker-compose -h|--help

Options:
  -f, --file FILE             Specify an alternate compose file
                              (default: docker-compose.yml)
  -p, --project-name NAME     Specify an alternate project name
                              (default: directory name)
  --verbose                   Show more output
  --log-level LEVEL           Set log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
  --no-ansi                   Do not print ANSI control characters
  -v, --version               Print version and exit
  -H, --host HOST             Daemon socket to connect to

  --tls                       Use TLS; implied by --tlsverify
  --tlscacert CA_PATH         Trust certs signed only by this CA
  --tlscert CLIENT_CERT_PATH  Path to TLS certificate file
  --tlskey TLS_KEY_PATH       Path to TLS key file
  --tlsverify                 Use TLS and verify the remote
  --skip-hostname-check       Don't check the daemon's hostname against the
                              name specified in the client certificate
  --project-directory PATH    Specify an alternate working directory
                              (default: the path of the Compose file)
  --compatibility             If set, Compose will attempt to convert keys
                              in v3 files to their non-Swarm equivalent

Commands:
  build              Build or rebuild services
  bundle             Generate a Docker bundle from the Compose file
  config             Validate and view the Compose file
  create             Create services
  down               Stop and remove containers, networks, images, and volumes
  events             Receive real time events from containers
  exec               Execute a command in a running container
  help               Get help on a command
  images             List images
  kill               Kill containers
  logs               View output from containers
  pause              Pause services
  port               Print the public port for a port binding
  ps                 List containers
  pull               Pull service images
  push               Push service images
  restart            Restart services
  rm                 Remove stopped containers
  run                Run a one-off command
  scale              Set number of containers for a service
  start              Start services
  stop               Stop services
  top                Display the running processes
  unpause            Unpause services
  up                 Create and start containers
  version            Show the Docker-Compose version information
Linux Shell 命令检索

############################################################################## # 常用快捷键(默认使用 Emacs 键位) ############################################################################## CTRL+A # 移动到行首,同 <Home> CTRL+B # 向后移动,同 <Left> CTRL+C # 结束当前命令 CTRL+D # 删除光标前的字符,同 <Delete> ,或者没有内容时,退出会话 CTRL+E # 移动到行末,同 <End> CTRL+F # 向前移动,同 <Right> CTRL+G # 退出当前编辑(比如正在 CTRL+R

Docker+Apache+Php+Oci8+Mantis

因为工作需要,需要部署一个BUG系统!最后选用的Mantis。然后将数据库采用项目系统所用的Oracle测试库,之前部署的是apache+php5+oci8,但是安全组扫描时发现因部署后一直没有升级的原因,php存在漏洞,想趁着这次升级干脆改成Docker。重新安装CentOS7 1804后,安装Docker,pull了php+apache的镜像:FROM php:7.3-apache RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&\ echo "Asia/shanghai" > /etc/timezone ADD oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm /root/ ADD oracle-instantclient11.2-devel-11.