[root@localhost ~]# docker run -it centos bash Unable to find image 'centos:latest' locally docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). See 'docker run --help'.
[root@localhost ~]# docker images #docker安装的镜像 REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest d1165f221234 3 months ago 13.3kB centos latest 300e315adb2f 6 months ago 209MB [root@localhost ~]# docker ps #docker目前在运行的进程,下面显示是没有 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [root@localhost ~]# docker ps -a #-a表示docker刚才运行的进程 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES fdc92c41c363 centos "/bin/echo 'hollo do…" 8 minutes ago Exited (0) 7 minutes ago optimistic_volhard 30c93c21d6d0 centos "bash" 16 minutes ago Exited (0) 15 minutes ago busy_jang 889899077b9c hello-world "/hello" 32 minutes ago Exited (0) 32 minutes ago clever_dirac [root@localhost ~]# docker ps --help
Usage: docker ps [OPTIONS]
List containers
Options: -a, --all Show all containers (default shows just running) -f, --filter filter Filter output based on conditions provided --format string Pretty-print containers using a Go template -n, --last int Show n last created containers (includes all states) (default -1) -l, --latest Show the latest created container (includes all states) --no-trunc Don't truncate output -q, --quiet Only display container IDs -s, --size Display total file sizes [root@localhost ~]#
LNMP架构安装使用
LNMP架构介绍
LNMP架构 : Linux + nginx + mysql + (mariaDB) + php 的开发架构 类似的有LAMP架构: LAMP架构 : Linux + apache + mysql + (mariaDB) + php 的开发架构
[root@localhost html]# cat /etc/nginx/nginx.conf # For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf;
include /etc/nginx/mime.types; default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory. # See http://nginx.org/en/docs/ngx_core_module.html#include # for more information. include /etc/nginx/conf.d/*.conf;
# upstream backend-apache { # server 127.0.0.1:7080; # } #upstream backend-jenkins { # server 127.0.0.1:8080; # }