Docker用到的命令

2019-10-15  本文已影响0人  叽咯
    1  passwd
    2  passwdll
    3  ll
    4  passwd admin
    5  ip add
    6  ping www.baidu.com
    7  yum
    8  vi /etc/ssh/sshd_config 
    9  systemctl restart sshd.service
   10  systemctl status sshd.service
   11  vi /etc/ssh/sshd_config 
   12  systemctl restart sshd.service
   13  vi /etc/ssh/ssh_config 
   14  vi /etc/ssh/sshd_config 
   15  systemctl restart sshd.service
   16  vi /etc/ssh/sshd_config 
   17  systemctl restart sshd.service
   18  yum -y install python3
   19  yum -y install python3.7
   20  yum -y install python
   21  python --version
   22  whereis python
   23  ll /usr/bin/python*
   24  whereis python > python.txt
   25  cat python.txt 
   26  ll /usr/bin python* >> python.txt
   27  whereis python > python.txt
   28  ll /usr/bin/python* >> python.txt 
   29  cat python.txt 
   30  cat /usr/bin/python
   31  ll
   32  echo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 
   33  yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 
   34  history
   35  history |34
   36  yum -y install python3
   37  yum -y install python3.7
   38  yum -y install python
   39  python --version
   40  whereis python
   41  ll /usr/bin/python*
   42  whereis python > python.txt
   43  cat python.txt 
   44  ll /usr/bin python* >> python.txt
   45  whereis python > python.txt
   46  ll /usr/bin/python* >> python.txt 
   47  cat python.txt 
   48  cat /usr/bin/python
   49  ll
   50  echo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 
   51  yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 
   52  history
   53  history |34
   54  history |zlib
   55  chmod 777 python.txt 
   56  ll
   57  yum -y install python3
   58  yum -y install python3.7
   59  yum -y install python
   60  python --version
   61  whereis python
   62  ll /usr/bin/python*
   63  whereis python > python.txt
   64  cat python.txt 
   65  ll /usr/bin python* >> python.txt
   66  whereis python > python.txt
   67  ll /usr/bin/python* >> python.txt 
   68  cat python.txt 
   69  cat /usr/bin/python
   70  ll
   71  echo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 
   72  yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 
   73  history
   74  history |34
   75  history |zlib
   76  history | grep zlib
   77  echo
   78  echo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make >> python.txt 
   79  cat python.txt 
   80  yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 
   81  echo yum -y install epel-release >> python.txt 
   82  echo yum -y install python-pip >> python.txt 
   83  yum -y install epel-release
   84  yum -y install python-pip
   85  pip install wget
   86  pip install pip
   87  pip install --upgrade pip
   88  pip install wget
   89  echo pip install wget >> python.txt 
   90  echo pip install --upgrade pip >> python.txt 
   91  cat python.txt 
   92  wget https://www.python.org/ftp/python
   93  ll
   94  cd python
   95  rm -rf python
   96  ll
   97  pwd
   98  wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
   99  ll
  100  rm -rf Python-3.7.4.tgz 
  101  ll
  102  tar -zxvf Python-3.7.4.tgz ./python3
  103  tar -zxvf Python-3.7.4.tgz .
  104  tar -zxvf Python-3.7.4.tgz
  105  ll
  106  ll Python-3.7.4
  107  cat python.txt 
  108  echo tar -zxvf Python-3.7.4.tgz >> python.txt 
  109  ll
  110  ./Python-3.7.4/configure prefix=/usr/local/python3
  111  ll
  112  rm -rf M*
  113  ll'
  114  ll
  115  cd Python-3.7.4
  116  LL
  117  ll
  118  ./configure prefix=/usr/local/python3
  119  make && make install
  120  cat /usr/local/
  121  ll /usr/local/
  122  ll /usr/bin/python*
  123  vi ../python.txt 
  124  cd ..
  125  ll
  126  rm -rf Python-3.7.4
  127  tar -zxvf Python-3.7.4.tgz -C /usr/local/python3
  128  tar -zxvf Python-3.7.4.tgz -C /usr/local/python3/
  129  tar -zxvf Python-3.7.4.tgz -C /usr/local/python3
  130  cd /usr/local/python3/
  131  ll
  132  mv Python-3.7.4 python3
  133  ll
  134  cd ..
  135  ll
  136  mv python3 python
  137  ll
  138  cd python/
  139  mv python3 ..
  140  ll
  141  cd ..
  142  ll
  143  rm -rf python
  144  cd python3/
  145  ll
  146  make && make install
  147  ./configure 
  148  make && make install
  149  ll /usr/local/
  150  ll /usr/local/lib/
  151  make install
  152  yum install -y libffi-devel
  153  make install
  154  ll /usr/bin/
  155  ll /usr/bin/python*
  156  python3
  157  whereis python3*
  158  whereis python
  159  whereis python3
  160  ll /usr/local/bin/python3*
  161  $path
  162  path
  163  echo path
  164  echo PATH
  165  echo $PATH
  166  python -V
  167  python3 -V
  168  cp /usr/local/bin/python3 /usr/bin/
  169  ll usr/bin/python*
  170  ll usr/bin/python
  171  cat /usr/bin/python*
  172  ll  /usr/bin/python
  173  ll  /usr/bin/python*
  174  pwd
  175  /usr/bin/python3
  176  python 2.7
  177  python2.7
  178  cp /usr/local/bin/python3 -d /usr/bin/python3
  179  ll  /usr/bin/python*
  180  ll  /usr/local/bin/python*
  181  /usr/bin/python3
  182  cd /usr/bin/
  183  ll
  184  rm -rf python3
  185  cp /usr/local/bin/python3 -d /usr/bin/python3
  186  pwd
  187  ll python*
  188  python3
  189  ./python3
  190  ll /usr/local/bin/python*
  191  cp -d /usr/local/bin/python3 /usr/bin/python3
  192  pwd
  193  ll python*
  194  rm -rf python3
  195  ll python*
  196  cp -d /usr/local/bin/python3 /usr/bin/python3
  197  ll python*
  198  ln -s /usr/local/bin/python3.7 python3
  199  rm -rf python3
  200  ln -s /usr/local/bin/python3.7 python3
  201  ll python*
  202  rm -rf python3
  203  python3 -v
  204  python3 -V
  205  yum install python3
  206  yum install python
  207  pip3
  208  pip3 -V
  209  pip2 -V
  210  rm -rf /usr/local/python3
  211  ll /usr/local/
  212  mkdir /usr/local/python3
  213  make clean
  214  cd /usr/
  215  ll
  216  cd local/
  217  ll
  218  cd python3/
  219  ll
  220  make clean
  221  make distclean
  222  ll
  223  cd ..
  224  rm -rf python3/
  225  ll
  226  python3
  227  python2
  228  python3
  229  pip3 install virtualenv
  230  mkdir rwx1
  231  mkdir rwx2
  232  chmod rwx1 770 rwx2 750
  233  chmod rwx1 770 
  234  chmod rwx1 770
  235  chmod 770 rwx1
  236  chmod 750 rwx2
  237  ll
  238  mkdir rwx3 
  239  chmod 730 rwx3
  240  ll
  241  chmod 777 rwx1
  242  chmod 775 rwx2
  243  chmod 773 rwx3
  244  ll rwx*
  245  ll
  246  yum install curl
  247  curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -
  248  ll
  249  uname -r
  250  yum remove docker
  251  yum remove docker 
  252  curl -fsSL https://get.docker.com -o get-docker.sh
  253  ll
  254  sh get-docker.sh 
  255  service.docker start
  256  systemctl start docker
  257  systemctl status docker
  258  vi /etc/docker/key.json 
  259  cat /etc/docker/
  260  cd /etc/docker/
  261  ll
  262  touch daemon.json
  263  vi daemon.json 
  264  cd /home/admin/
  265  docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun -dP mysql
  266  ll
  267  docker run --name=pan --link=db  -ti -p 8081:80 -p 6800:6800 jaegerdocker/pan
  268  docker remove pan
  269  docker --help
  270  docker rem pan
  271  docker rm pan
  272  docker rmi pan
  273  docker rmi --name=pan
  274  docker rmi --help
  275  docker rmi -f pan
  276  mysql
  277  docker run --help
  278  docker run db
  279  docker --help
  280  docker image
  281  docker image ls
  282  docker image rm mysql 
  283  docker image rm pan
  284  curl -sSL http://acs-public-mirror.oss-cn-hangzhou.aliyuncs.com/docker-engine/internet | sh -
  285  docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun -dP mysql
  286  docker container ls
  287  docker container --help
  288  docker container rm db
  289  docker container rm -f db
  290  docker container ls
  291  docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun -dP mysql
  292  docker container rm -f db
  293  docker container ls
  294  docker container --help
  295  docker image ls
  296  docker image rm -f db
  297  docker image
  298  docker image ls
  299  docker container  ls
  300  docker image ls
  301  docker  rm -f mysql
  302  docker  image rm -f mysql
  303  docker  image rm -f jaegerdocker/pan
  304  docker rum --help
  305  docker run --help
  306  cls
  307  docker run --help
  308  docker pull mysql
  309  docker run -d -P mysql
  310  docker run ls
  311  docker ls
  312  docker container ls
  313  docker ps -a
  314  docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun
  315  docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun-d mysql:latest
  316  docker ps -a
  317  docker container rm -f mysql
  318  docker container ls
  319  docker container rm -f mysql:latest
  320  docker container rm -f f39ebe62ad3e
  321  docker image ls
  322  docker run docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun -dP mysql
  323  docker run docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun -dP mysql:latest
  324  docker run docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun -d mysql
  325  docker run docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun -d mysql:latest
  326  docker image ls
  327  docker run latest
  328  docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun -dP mysql
  329  docker run --name=db -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=filerun -e MYSQL_USER=filerun -e MYSQL_PASSWORD=filerun -dP mysql:latest
  330  docker container ls
  331  docker ps
  332  docker exec -it db mysql-u root -p
  333  docker exec -it db mysql -u root -p
  334  docker exec -it db mysql -u filerun -p
  335  docker exec -it db bash
  336  docker run --name=pan --link=db  -ti -p 8081:80 -p 6800:6800 jaegerdocker/pan
  337  docker ps
  338  docker run db
  339  docker run mysql db
  340  docker run mysql
  341  docker run mysql:latest
  342  docker run --help
  343  docker ps -a
  344  docker start
  345  docker start --help
  346  systemctl status docker
  347  systemctl start docker
  348  docker ps -a
  349  docker rm -f hungry_sqartz
  350  docker rm -f 186
  351  docker ps -a
  352  docker run db
  353  docker run mysql db
  354  docker start db
  355  docker ps -a
  356  docker run --name=pan --link=db  -ti -p 8081:80 -p 6800:6800 jaegerdocker/pan
  357  docker ps -a
  358  docker run --name=pan --link=db  -ti -p 8081:80 -p 6800:6800 jaegerdocker/pan
  359  docker stop db
  360  docker ps -a
  361  docker run --name=pan   -ti -p 8081:80 -p 6800:6800 jaegerdocker/pan
  362  docker run -help
  363  docker run --help
  364  docker run --name=pan  -p 8081:80 -p 6800:6800 jaegerdocker/pan
  365  docker image ls
  366  service docker restart
  367  service docker status
  368  docker run --name=pan  -p 8081:80 -p 6800:6800 jaegerdocker/pan
  369  docker ps -a
  370  docker run --name=pan  -p 8081:80 -p 6800:6800 jaegerdocker/pan
  371  docker start db
  372  docker run --name=pan  -p 8081:80 -p 6800:6800 jaegerdocker/pan
  373  docker logs 
  374  docker logs pan
  375  docker exex -it db bash
  376  docker exex -ti db bash
  377  docker exec -ti db bash
  378  docker run --name=pan -link=db -p 8081:80 -p 6800:6800 jaegerdocker/pan
  379  docker run --name=pan --link=db -p 8081:80 -p 6800:6800 jaegerdocker/pan
  380  docker ps -a
  381  docker start a7e
  382  docker ps -a
  383  docker run --name=pan --link=db -p 8081:80 -p 6800:6800 jaegerdocker/pan
  384  docker exec -ti db bash
  385  docker ps -a
  386  docker start a7e
  387  docker ps -a
  388  docker run --link=name pan
  389  docker run --link=name -d pan
  390  docker start --link=name -d pan
  391  docker ps -a
  392  docker run --help
  393  docker run --help|grep l
  394  docker ps
  395  docker start pan
  396  docker ps
  397  docker rm -f pan
  398  docker image ls
  399  docker run --name=pan --link db:db  -ti -p 8081:80 -p 6800:6800 jaegerdocker/pan
  400  docker ps
  401  docker logs pan
  402  docker start pan
  403  docker logs pan
  404  docker ps
  405  docker rm -f pan
  406  docker run --name=pan --link=db  -ti -p 8081:80 -p 6800:6800 jaegerdocker/pan
  407  docker ps
  408  docker start pan
  409  docker ps
  410  show process cpu
  411  docker info
  412  docker ps -a
  413  docker images
  414  yum update
  415  yum update docker
  416  yum upgrade docker
  417  yum install docker
  418  cat /etc/docker/daemon.json 
  419  vi /etc/docker/daemon.json 
  420  docker pull wordpress
  421  docker run -d --privileged=true --name myMysql -v /data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -p 33306:3306 mysql:5.6
  422  docker run -d --privileged=true --name myMysql -v /data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -p 33306:3306 mysql
  423  docker ps -a
  424  docker ps 
  425  docker run -d --name mwp -e WORDPRESS_DB_HOST=mysql -e WORDPRESS_DB_PASSWORD=123456 -p 1080:80 --link myMysql:mysql wordpress
  426  docker ps 
  427  docker stop pan
  428  docker run -p 8081:80 -d mwp
  429  vi /var/lib/docker/containers/61cc06a9eec380d3f64b55acd29f917e0df56e0157b29483a8a875cc428fac07/hostconfig.json 
  430  docker restart mwp
  431  docker ps
  432  service restart docker
  433  service  docker restart
  434  docker start myMysql mwp
  435  docker ps
  436  vi /var/lib/docker/containers/61cc06a9eec380d3f64b55acd29f917e0df56e0157b29483a8a875cc428fac07/hostconfig.json 
  437  docker restart  mwp
  438  docker ps
  439  vi /var/lib/docker/containers/61cc06a9eec380d3f64b55acd29f917e0df56e0157b29483a8a875cc428fac07/hostconfig.json 
  440  service docker restart
  441  vi /var/lib/docker/containers/61cc06a9eec380d3f64b55acd29f917e0df56e0157b29483a8a875cc428fac07/hostconfig.json 
  442  docker rm -f 61cc
  443  docker start myMysql
  444  docker run -d --name mwp -e WORDPRESS_DB_HOST=mysql -e WORDPRESS_DB_PASSWORD=123456 -p 8081:80 --link myMysql wordpress
  445  docker ps
  446  docker restart myMysql mwp
  447  docker logs mwp
  448  docker ps
  449  docker rm -f ba7
  450  docker run -d --name mwp -e WORDPRESS_DB_HOST=0.0.0.0:33306 -e WORDPRESS_DB_PASSWORD=123456 -p 8081:80 --link myMysql wordpress
  451  docker ps
  452  docker restart myMysql mwp
  453  docker -exec -it mwp bash
  454  docker exec -it mwp bash
  455  docker ps
  456  docker restart myMysql mwp
  457  docker rm -f mwp
  458  docker run -d --name mwp  -e -p 8081:80 --link myMysql wordpress
  459  docker run -d --name mwp -p 8081:80 --link myMysql wordpress
  460  docker ps
  461  docker exec -it myMysql bash
  462  docker rm -f mwp
  463  docker run -d --name mwp -p 8081:80 --link myMysql -e WORDPRESS_DB_NAME=wordpress wordpress
  464  docker exec -it myMysql bash
  465  docker rm -f mwp
  466  docker run -d --name mwp -p 8081:80 --link myMysql:wordpress -e WORDPRESS_DB_NAME=wordpress wordpress
  467  docker exec -it myMysql bash
  468  docker ps
  469  docker run -d --name mwp -e WORDPRESS_DB_HOST=mysql -e WORDPRESS_DB_PASSWORD=123456 -p 1080:80 --link myMysql:mysql wordpress
  470  docker rm -f mwp
  471  docker run -d --name mwp -e WORDPRESS_DB_HOST=mysql -e WORDPRESS_DB_USER=OXBETA -e WORDPRESS_DB_PASSWORD=123456 -p 1080:80 --link myMysql:mysql wordpress
  472  docker rm -f mwp
  473  docker run -d --name mwp -e WORDPRESS_DB_USER=OXBETA -e WORDPRESS_DB_PASSWORD=123456 -p 1080:80 --link myMysql:mysql wordpress
  474  docker ps
  475  docker rm -f mwp
  476  docker run -d --name mwp -e WORDPRESS_DB_HOST=mysql -e WORDPRESS_DB_USER=OXBETA -e WORDPRESS_DB_PASSWORD=123456 -p 8081:80 --link myMysql:mysql wordpress
  477  docker rm -f mwp
  478  docker run -d --name mwp -e WORDPRESS_DB_PASSWORD=123456 -p 8081:80 --link myMysql wordpress
  479  docker restart myMysql mwp
  480  docker rm -f mwp
  481  docker run -d --name mwp  -e WORDPRESS_DB_USER=OXBETA -e WORDPRESS_DB_PASSWORD=123456 -p 8081:80 --link myMysql wordpress
  482  docker rm -f mwp
  483  docker run -d --name mwp -e WORDPRESS_DB_PASSWORD=123456 -p 8081:80 --link myMysql wordpress
  484  docker restart myMysql mwp
  485  docker restart mwp
  486  docker logs mwp
  487  docker ps 
  488  docker logs mwp
  489  docker ps 
  490  docker logs mwp
  491  docker -rm -f myMqsql mwp
  492  docker -rm -f myMqsql
  493  docker rm -f myMqsql mwp
  494  docker rm -f myMysql mwp
  495  docker ps
  496  docker run -d --name mymysql -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=wordpress -e MYSQL_USER=oxbeta -e MYSQL_PASSWORD=oxbeta mysql
  497  docker run -d --name mymywordpress --link mymysql -p 8081:80 wordpress
  498  docker logs mymywordpress
  499  docker exec -it mymysql bash
  500  docker ps
  501  docker rm -f mymysql
  502  docker run -d --name mymysql -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=wordpress -e MYSQL_USER=oxbeta -e MYSQL_PASSWORD=oxbeta -p 3306:33060 mysql
  503  docker ps
  504  docker inspect mymysql
  505  docker inspect mymysql|grep IPAd
  506  docker exec -ti mymysql bash
  507  docker inspect mymysql
  508  docker inspect mywordpress
  509  docker inspect mymywordpress
  510  docker exec -ti mymysql bash
  511  ping 172.17.0.2
  512  ping 172.17.0.3
  513  ip add
  514  docker exec -ti mymysql bash
  515  docker logs mymywordpress
  516  docker exec -ti mymysql bash
  517  docker rm -f mymy*
  518  docker rm -f mymysql
  519  docker rm -f mymywordpress
  520  docker run -d --name mysql2 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql
  521  docker run -itd  -p 80:80 --link mysql2 wordpress
  522  docker ps 
  523  docker rm -f 47f
  524  docker run -itd --name wp -p 8081:80 --link mysql2 wordpress
  525  docker exec -it mysql2 bash
  526  docker inspect mysql2 |grep IPa
  527  docker inspect mysql2 |grep IPA
  528  docker logs wp
  529  whereis wp-config-sample.php
  530  docker ps
  531  cat /var/lib/docker/containers/
  532  docker ps
  533  cat /var/lib/docker/containers/2e3a725b6e2b6f95966e7c6fe17c5f099b0967e7300d183803623876cf83bd5a/2e3a725b6e2b6f95966e7c6fe17c5f099b0967e7300d183803623876cf83bd5a-json.log 
  534  cat /var/lib/docker/containers/2e3a725b6e2b6f95966e7c6fe17c5f099b0967e7300d183803623876cf83bd5a/hostconfig.json 
  535  cat /var/lib/docker/containers/2e3a725b6e2b6f95966e7c6fe17c5f099b0967e7300d183803623876cf83bd5a/mounts/
  536  docker inspect 
  537  docker inspect mysql2
  538  docker inspect wp
  539  docker rm -f wp
  540  docker run -itd --name wp -p 8081:80 --link mysql2:sql wordpress
  541  docker inspect wp
  542  docker ps
  543  docker logs wp
  544  docker exec -it mysql2 bash
  545  cat /etc/host
  546  cat /etc/hosts
  547  ping mysql2
  548  ping 172.17.0.3
  549  ping -a 172.17.0.3
  550  ping -a 172.17.0.2
  551  docker ps --help
  552  docker ps 
  553  find -name='wp-config.php' /
  554  find -name=wp-config.php /
  555  man find
  556  find -name wp-config.php /
  557  find / -name wp-config.php 
  558  docker ps -a
  559  ip addr
  560  docker rm -f mysql2 wp
  561  history | grep MYSQL
  562  docker run -d --name mysql2 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=oxbeta mysql
  563  docker exec -it mysql2 bash
  564  docker run --name mywp --link some_mysql:mysql -p 80:80       -e WORDPRESS_DB_USER=user_wp       -e WORDPRESS_DB_PASSWORD=123456 \
  565  docker run --name wp --link mysql2:mysql -p 8081:80       -e WORDPRESS_DB_USER=oxbeta       -e WORDPRESS_DB_PASSWORD=oxbeta wordpress
  566  docker ps
  567  docker run --name wp --link mysql2 -p 8081:80       -e WORDPRESS_DB_USER=oxbeta       -e WORDPRESS_DB_PASSWORD=oxbeta wordpress
  568  docker start wp
  569  docker ps
  570  docker logs wp
  571  docker rm -f wp
  572  docker run --name wp --link mysql2 -p 8081:80  -e  WORDPRESS_DB_HOST=172.17.0.2    -e WORDPRESS_DB_USER=oxbeta       -e WORDPRESS_DB_PASSWORD=oxbeta wordpress
  573  docker rm -f wp
  574  docker run --name wp --link mysql2 -p 8081:80  -e  WORDPRESS_DB_HOST=172.17.0.2:3306    -e WORDPRESS_DB_USER=oxbeta       -e WORDPRESS_DB_PASSWORD=oxbeta -e WORDPRESS_DB_NAME=wordpress  wordpress
  575  find / -name mysql.conf
  576  vi /var/lib/docker/overlay2/609095af7f9338b5fb2005a828a0169520119b398feabd654cb459f4291f5e0c/diff/etc/init/mysql.conf
  577  docker exec -it mysql2 bash
  578  docker rm -f wp
  579  docker run --name wp --link mysql2 -p 8081:80  -e  WORDPRESS_DB_HOST=172.17.0.2    -e WORDPRESS_DB_USER=oxbeta       -e WORDPRESS_DB_PASSWORD=oxbeta -e WORDPRESS_DB_NAME=wordpress  wordpress
  580  docker rm -f wp
  581  docker run --name wp --link mysql2:somesql -p 8081:80   -e WORDPRESS_DB_USER=oxbeta    -e WORDPRESS_DB_PASSWORD=oxbeta   wordpress
  582  docker rm -f
  583  docker run -d --name sql2 -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=wordpress -e MYSQL_USER=oxbeta -e MYSQL_PASSWORD=oxbeta -p 3306:33060 mysql
  584  history
  585  docker ps
  586  run -d --name wp   -p 8081:80 --link mysql2:somesql  wordpress
  587  docker run -d --name wp   -p 8081:80 --link mysql2:somesql  wordpress
  588  docker inspect mysql2|grep IPA
  589  docker ps
  590  docker logs wp
  591  docker exec -it mysql2 bash
  592  find / -name wp-admin
  593  docker ps
  594  cat /var/lib/docker/overlay2/9ff55255a8b2b93fbee25a6c45a20076b0c9f02f4529b2aadcc894f04c9d98f9/merged/usr/src/wordpress/wp-admin
  595  cd /var/lib/docker/overlay2/9ff55255a8b2b93fbee25a6c45a20076b0c9f02f4529b2aadcc894f04c9d98f9/merged/usr/src/wordpress/wp-admin
  596  ll
  597  ll | grep conf
  598  cat setup-config.php 
  599  find / -name wp-config-sample.php
  600  docker ps -a
  601  docker start sql2
  602  docker stop mysql2
  603  docker start sql2
  604  docker exec -it sql2 bash
  605  docker rm -f sql2
  606  docker rm -f wp
  607  find / -name wp-config-sample.php
  608  docker ps -a
  609  docker run -d --name wp   -p 8081:80 --link mysql2:somesql  wordpress
  610  docker start mysql2
  611  docker run -d --name wp   -p 8081:80 --link mysql2:somesql  wordpress
  612  docker rm -f wp
  613  docker run -d --name wp   -p 8081:80 --link mysql2:somesql  wordpress
  614  docker ps -a
  615  find / -name wp-config-sample.php
  616  cat /var/lib/docker/overlay2/852f910dcd6772439f7382cab8788e95ee2be1a069844c74a4638ecf07ca2946/merged/usr/src/wordpress/wp-config-sample.php
  617  docker inspect somesql
  618  docker inspect mysql|grep IPA
  619  docker inspect mysql2|grep IPA
  620  docker ps
  621  docker rm -f mysql2 wp
  622  docker ps
  623  docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql
  624  docker ps
  625  docker rm -f some-mysql
  626  docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -d mysql
  627  docker run --name some-wordpress --link some-mysql:mysql -p 8081:80 -d wordpress
  628  docker logs some-wordpress
  629  docker ps
  630  docker rm -f some-wordpress some-mysql
  631  sudo docker run -d --name mysql  -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=wordpress mysql
  632  docker run -d -e WORDPRESS_DB_HOST=mysql:3306 --link mysql -p 8081 wordpress
  633  docker ps
  634  docker name sad_clarke wp
  635  docker rm -f sad_clarke
  636  docker run -d -e WORDPRESS_DB_HOST=mysql:3306 --link mysql -p 8081:80 wordpress
  637  docker ps
  638  docker logs sharp_mccarthy
  639  docker rm -f shark
  640  docker ps
  641  docker rm -f sharp
  642  docker rm -f sharp_mccarthy
  643  docker run -d --name wp -e WORDPRESS_DB_HOST=mysql --link mysql -p 8081:80 wordpress
  644  docker rm -f wp
  645  docker run -d --name wp -e WORDPRESS_DB_HOST=172.17.0.2:3306 --link mysql -p 8081:80 wordpress
  646  docker search mysql
  647  docker pull linuxserver/mysql
  648  docker run -d --name yoursql -e MYSQL_ROOT_PASSWORD=oxbeta -p 3306:3306 linuxserver/mysql
  649  docker run -d --name yoursql -e MYSQL_ROOT_PASSWORD=oxbeta -p 33060:33060 linuxserver/mysql
  650  docker ps -a
  651  docker rm -f wp mysql yoursql
  652  docker run -d --name yoursql -e MYSQL_ROOT_PASSWORD=oxbeta -p 3306:3306 linuxserver/mysql
  653  docker run -d --name yourwp -itd --link mysql:mysql -p 8081:80 wordpress
  654  docker rm -f yourwp
  655  docker run -d --name yourwp -itd --link yoursql:yoursql -p 8081:80 wordpress
  656  docker logs yourwp
  657  docker exec -it yoursql bash
  658  docker exec -itd yoursql bash
  659  docker inspect yoursql|grep IPA
  660  docker run  -d --name testsql mysql
  661  docker exec -it testsql bash
  662  docker start testsql
  663  docker exec -it testsql bash
  664  docker ps
  665  docker logs testsql
  666  docker rm -f testsql
  667  docker exec -it yoursql bash
  668  docker run  -d --name testsql -e MYSQL_ROOT_PASSWORD=123456 mysql
  669  docker exec -it testsql  bash
  670  docker ps
  671  docker rm -f wp
  672  docker run -d --name wp  --link mysql -p 8081:80 wordpress
  673  docker restart wp
  674  docker logs wp
  675  docker rm -f wp
  676  docker rm -f mysql
  677  sudo docker run -d --name mysql  -e MYSQL_ROOT_PASSWORD=root p:3306:3306  mysql
  678  sudo docker run -d --name mysql  -e MYSQL_ROOT_PASSWORD=root -p 3306:3306  mysql
  679  docker run -d --name wp  --link mysql -p 8081:80 wordpress
  680  docker ps
  681  history
  682  history >> docker.txt
上一篇下一篇

猜你喜欢

热点阅读