この記事は約178分6秒で読むことができます。

dockerでapacheサービス作ろうとした話(curl attackするサーバ建てたかっただけ。)

参考文献

run引数書いていると上書きされるんだね

CMD とENTRYPOINT の違いを試してみた  
Apache HTTP Server Documentation  

Dockerfile

コード表示

[oracle@centos tmp]$ pwd
/home/oracle/tmp
[oracle@centos tmp]$ cat $(find . -name "D*")
FROM centos:latest

ENV MNT_DIR=/mnt
ENV MIG_DIR=./mig
ENV CFG_DIR=${MNT_DIR}/cfg
ENV EXE_DIR=${MNT_DIR}/exe
ENV WEB_SRC_DIR=${MIG_DIR}/src
ENV AP_SRC_DIR=${MNT_DIR}/src/ap
ENV TAR_DIR=/mnt

COPY ${MIG_DIR}/ ${MNT_DIR}/

RUN source ${CFG_DIR}/*.sh

COPY ${WEB_SRC_DIR}/*.html ${WEB_TAR_DIR}/
 
RUN find ${TAR_DIR} -name "*.sh"

RUN chmod u+x ${CFG_DIR}/*.sh && find ${CFG_DIR} -name "*.sh" | while read line;do bash -c ${line};done
RUN chmod u+x ${EXE_DIR}/*.sh && find ${EXE_DIR} -name "*.sh" | while read line;do bash -c ${line};done
EXPOSE 80
CMD ["/sbin/init"]

env.sh

設定ファイルを=で繋いだ奴とか除外対象とかていぎしたらいいとおもう。今回はない。

コード表示

[oracle@centos tmp]$ cat $(find . -name "env*")
#!/bin/bash

inst.sh

yum installはそとだし。きほん。

コード表示

[oracle@centos tmp]$ cat $(find . -name "inst*")
#!/bin/bash
yum install -y httpd \ 
yum install -y iputils \
yum install -y net-tools \
yum install -y iproute \
yum install -y vim \
yum install -y tree \
yum install -y lsof \
yum install -y traceroute

pre.sh

systemd使えるようにする奴。ただいまの最新だと、privillagedとか/sbin/initとか忘れなきゃ、普通につかえる。なにか前処理的なものを組み込んでおきたいとかは役立つかも。サービスの自動起動とか。そのサービスの自動起動がハマったんだけどね。コンテナ起こしてから起動するのはできるけど、コンテナUPしたときにサービス起動するようにしたい時、コマンド基本的に1つしか受け付けていないぽくて、&&でつなぐなりしてもExitしてたり。CMD上書きだったり、ENTRYPOINT上書きだったり。

コード表示

[oracle@centos tmp]$ cat $(find . -name "pre*")
#!/bin/bash
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;\
yum update -y;yum clean all;

index.html

See the Pen
XQQKWv
by ukijumotahaneniarukenia (@brunohigashi)
on CodePen.

kick.sh

コード表示

[oracle@centos tmp]$ cat $(find . -name "kic*")
WK_PATH=$0
EXE_PATH=$(pwd)${WK_PATH#.}
IMAGE_NAME=$1

if [ -z "${IMAGE_NAME}" ]; then
cat <<EOF
_________________________________________________________________________________
please enter build image name.

EOF
  exit 1
fi

echo "Building image '${IMAGE_NAME}' ..."

BUILD_START=$(date '+%s')
( cd ${EXE_PATH%/*};docker build --force-rm=true --no-cache=true -t ${IMAGE_NAME} -f Dockerfile . || {
  echo 'there was an error building the image.'
  exit 1
} )
BUILD_END=$(date '+%s')
BUILD_ELAPSED=$((${BUILD_END}-${BUILD_START}))

echo ''

if [ $? -eq 0 ]; then
cat <<EOF
_________________________________________________________________________________

-->${IMAGE_NAME} was built

Build completed in ${BUILD_ELAPSED} seconds.

EOF

else
  echo 'docker image was NOT successfully created'
fi

build ログ

コード表示

[oracle@centos tmp]$ bash $(find . -name "kic*") apache/httpd
Building image 'apache/httpd' ...
Sending build context to Docker daemon  10.75kB
Step 1/17 : FROM centos:latest
latest: Pulling from library/centos
8ba884070f61: Pull complete 
Digest: sha256:8d487d68857f5bc9595793279b33d082b03713341ddec91054382641d14db861
Status: Downloaded newer image for centos:latest
 ---> 9f38484d220f
Step 2/17 : ENV MNT_DIR=/mnt
 ---> Running in 629fc3fb337e
Removing intermediate container 629fc3fb337e
 ---> 4a5e68bba915
Step 3/17 : ENV MIG_DIR=./mig
 ---> Running in fb049b6cec08
Removing intermediate container fb049b6cec08
 ---> 3ede465cc893
Step 4/17 : ENV CFG_DIR=${MNT_DIR}/cfg
 ---> Running in 730023c0f16d
Removing intermediate container 730023c0f16d
 ---> 94647a1a6121
Step 5/17 : ENV EXE_DIR=${MNT_DIR}/exe
 ---> Running in 635c5c603937
Removing intermediate container 635c5c603937
 ---> 7216499d357c
Step 6/17 : ENV WEB_SRC_DIR=${MIG_DIR}/src
 ---> Running in 5bb81917ef86
Removing intermediate container 5bb81917ef86
 ---> b8aef9c6bd86
Step 7/17 : ENV WEB_TAR_DIR=/var/www/html/
 ---> Running in fa22b224fbc4
Removing intermediate container fa22b224fbc4
 ---> b89be21c121b
Step 8/17 : ENV AP_SRC_DIR=${MNT_DIR}/src/ap
 ---> Running in 1947eb1ebc25
Removing intermediate container 1947eb1ebc25
 ---> 4a4de410b234
Step 9/17 : ENV TAR_DIR=/mnt
 ---> Running in 68e8925cd16f
Removing intermediate container 68e8925cd16f
 ---> d2c301f00930
Step 10/17 : COPY ${MIG_DIR}/ ${TAR_DIR}/
 ---> a8bf32fe19f5
Step 11/17 : RUN source ${CFG_DIR}/*.sh
 ---> Running in cefd6b416e23
Removing intermediate container cefd6b416e23
 ---> 0911856bb5bc
Step 12/17 : COPY ${WEB_SRC_DIR}/*.html ${WEB_TAR_DIR}
 ---> 4a052d13ccef
Step 13/17 : RUN find ${TAR_DIR} -name "*.sh"
 ---> Running in d1b12abd8166
/mnt/cfg/inst.sh
/mnt/cfg/env.sh
/mnt/exe/pre.sh
Removing intermediate container d1b12abd8166
 ---> 6ef3c419c176
Step 14/17 : RUN chmod u+x ${CFG_DIR}/*.sh && find ${CFG_DIR} -name "*.sh" | while read line;do bash -c ${line};done
 ---> Running in e465add73fb4
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: ftp-srv2.kddilabs.jp
 * extras: ftp-srv2.kddilabs.jp
 * updates: ftp-srv2.kddilabs.jp
No package   available.
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-89.el7.centos will be installed
--> Processing Dependency: httpd-tools = 2.4.6-89.el7.centos for package: httpd-2.4.6-89.el7.centos.x86_64
--> Processing Dependency: system-logos >= 7.92.1-1 for package: httpd-2.4.6-89.el7.centos.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-89.el7.centos.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-89.el7.centos.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-89.el7.centos.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
---> Package centos-logos.noarch 0:70.0.6-3.el7.centos will be installed
---> Package httpd-tools.x86_64 0:2.4.6-89.el7.centos will be installed
---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch         Version                    Repository     Size
================================================================================
Installing:
 httpd              x86_64       2.4.6-89.el7.centos        updates       2.7 M
Installing for dependencies:
 apr                x86_64       1.4.8-3.el7_4.1            base          103 k
 apr-util           x86_64       1.5.2-6.el7                base           92 k
 centos-logos       noarch       70.0.6-3.el7.centos        base           21 M
 httpd-tools        x86_64       2.4.6-89.el7.centos        updates        90 k
 mailcap            noarch       2.1.41-2.el7               base           31 k

Transaction Summary
================================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 24 M
Installed size: 31 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/base/packages/apr-util-1.5.2-6.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for apr-util-1.5.2-6.el7.x86_64.rpm is not installed
Public key for httpd-tools-2.4.6-89.el7.centos.x86_64.rpm is not installed
--------------------------------------------------------------------------------
Total                                              3.1 MB/s |  24 MB  00:07     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) "
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-6.1810.2.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : apr-1.4.8-3.el7_4.1.x86_64                                   1/6 
  Installing : apr-util-1.5.2-6.el7.x86_64                                  2/6 
  Installing : httpd-tools-2.4.6-89.el7.centos.x86_64                       3/6 
  Installing : centos-logos-70.0.6-3.el7.centos.noarch                      4/6 
  Installing : mailcap-2.1.41-2.el7.noarch                                  5/6 
  Installing : httpd-2.4.6-89.el7.centos.x86_64                             6/6 
  Verifying  : httpd-tools-2.4.6-89.el7.centos.x86_64                       1/6 
  Verifying  : mailcap-2.1.41-2.el7.noarch                                  2/6 
  Verifying  : apr-util-1.5.2-6.el7.x86_64                                  3/6 
  Verifying  : httpd-2.4.6-89.el7.centos.x86_64                             4/6 
  Verifying  : apr-1.4.8-3.el7_4.1.x86_64                                   5/6 
  Verifying  : centos-logos-70.0.6-3.el7.centos.noarch                      6/6 

Installed:
  httpd.x86_64 0:2.4.6-89.el7.centos                                            

Dependency Installed:
  apr.x86_64 0:1.4.8-3.el7_4.1                                                  
  apr-util.x86_64 0:1.5.2-6.el7                                                 
  centos-logos.noarch 0:70.0.6-3.el7.centos                                     
  httpd-tools.x86_64 0:2.4.6-89.el7.centos                                      
  mailcap.noarch 0:2.1.41-2.el7                                                 

Complete!
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ftp-srv2.kddilabs.jp
 * extras: ftp-srv2.kddilabs.jp
 * updates: ftp-srv2.kddilabs.jp
Package iputils-20160308-10.el7.x86_64 already installed and latest version
Package yum-3.4.3-161.el7.centos.noarch already installed and latest version
No package install available.
Package yum-3.4.3-161.el7.centos.noarch already installed and latest version
No package install available.
Package yum-3.4.3-161.el7.centos.noarch already installed and latest version
No package install available.
Package yum-3.4.3-161.el7.centos.noarch already installed and latest version
No package install available.
Package yum-3.4.3-161.el7.centos.noarch already installed and latest version
No package install available.
Resolving Dependencies
--> Running transaction check
---> Package iproute.x86_64 0:4.11.0-14.el7_6.2 will be installed
--> Processing Dependency: libmnl.so.0(LIBMNL_1.0)(64bit) for package: iproute-4.11.0-14.el7_6.2.x86_64
--> Processing Dependency: libxtables.so.10()(64bit) for package: iproute-4.11.0-14.el7_6.2.x86_64
--> Processing Dependency: libmnl.so.0()(64bit) for package: iproute-4.11.0-14.el7_6.2.x86_64
---> Package lsof.x86_64 0:4.87-6.el7 will be installed
---> Package net-tools.x86_64 0:2.0-0.24.20131004git.el7 will be installed
---> Package tree.x86_64 0:1.6.0-10.el7 will be installed
---> Package vim-enhanced.x86_64 2:7.4.160-5.el7 will be installed
--> Processing Dependency: vim-common = 2:7.4.160-5.el7 for package: 2:vim-enhanced-7.4.160-5.el7.x86_64
--> Processing Dependency: which for package: 2:vim-enhanced-7.4.160-5.el7.x86_64
--> Processing Dependency: perl(:MODULE_COMPAT_5.16.3) for package: 2:vim-enhanced-7.4.160-5.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 2:vim-enhanced-7.4.160-5.el7.x86_64
--> Processing Dependency: libgpm.so.2()(64bit) for package: 2:vim-enhanced-7.4.160-5.el7.x86_64
--> Running transaction check
---> Package gpm-libs.x86_64 0:1.20.7-5.el7 will be installed
---> Package iptables.x86_64 0:1.4.21-28.el7 will be installed
--> Processing Dependency: libnfnetlink.so.0()(64bit) for package: iptables-1.4.21-28.el7.x86_64
--> Processing Dependency: libnetfilter_conntrack.so.3()(64bit) for package: iptables-1.4.21-28.el7.x86_64
---> Package libmnl.x86_64 0:1.0.3-7.el7 will be installed
---> Package perl.x86_64 4:5.16.3-294.el7_6 will be installed
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(File::Temp) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(File::Spec::Unix) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(File::Spec::Functions) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(File::Spec) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(File::Path) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Exporter) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Cwd) for package: 4:perl-5.16.3-294.el7_6.x86_64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-294.el7_6.x86_64
---> Package perl-libs.x86_64 4:5.16.3-294.el7_6 will be installed
---> Package vim-common.x86_64 2:7.4.160-5.el7 will be installed
--> Processing Dependency: vim-filesystem for package: 2:vim-common-7.4.160-5.el7.x86_64
---> Package which.x86_64 0:2.20-7.el7 will be installed
--> Running transaction check
---> Package libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3 will be installed
---> Package libnfnetlink.x86_64 0:1.0.1-4.el7 will be installed
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-3.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-3.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.el7.noarch
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-macros.x86_64 4:5.16.3-294.el7_6 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
---> Package vim-filesystem.x86_64 2:7.4.160-5.el7 will be installed
--> Running transaction check
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-294.el7_6 will be installed
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
--> Running transaction check
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: groff-base for package: perl-Pod-Perldoc-3.20-4.el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
--> Running transaction check
---> Package groff-base.x86_64 0:1.22.2-8.el7 will be installed
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch     Version                      Repository
                                                                           Size
================================================================================
Installing:
 iproute                  x86_64   4.11.0-14.el7_6.2            updates   764 k
 lsof                     x86_64   4.87-6.el7                   base      331 k
 net-tools                x86_64   2.0-0.24.20131004git.el7     base      306 k
 tree                     x86_64   1.6.0-10.el7                 base       46 k
 vim-enhanced             x86_64   2:7.4.160-5.el7              base      1.0 M
Installing for dependencies:
 gpm-libs                 x86_64   1.20.7-5.el7                 base       32 k
 groff-base               x86_64   1.22.2-8.el7                 base      942 k
 iptables                 x86_64   1.4.21-28.el7                base      433 k
 libmnl                   x86_64   1.0.3-7.el7                  base       23 k
 libnetfilter_conntrack   x86_64   1.0.6-1.el7_3                base       55 k
 libnfnetlink             x86_64   1.0.1-4.el7                  base       26 k
 perl                     x86_64   4:5.16.3-294.el7_6           updates   8.0 M
 perl-Carp                noarch   1.26-244.el7                 base       19 k
 perl-Encode              x86_64   2.51-7.el7                   base      1.5 M
 perl-Exporter            noarch   5.68-3.el7                   base       28 k
 perl-File-Path           noarch   2.09-2.el7                   base       26 k
 perl-File-Temp           noarch   0.23.01-3.el7                base       56 k
 perl-Filter              x86_64   1.49-3.el7                   base       76 k
 perl-Getopt-Long         noarch   2.40-3.el7                   base       56 k
 perl-HTTP-Tiny           noarch   0.033-3.el7                  base       38 k
 perl-PathTools           x86_64   3.40-5.el7                   base       82 k
 perl-Pod-Escapes         noarch   1:1.04-294.el7_6             updates    51 k
 perl-Pod-Perldoc         noarch   3.20-4.el7                   base       87 k
 perl-Pod-Simple          noarch   1:3.28-4.el7                 base      216 k
 perl-Pod-Usage           noarch   1.63-3.el7                   base       27 k
 perl-Scalar-List-Utils   x86_64   1.27-248.el7                 base       36 k
 perl-Socket              x86_64   2.010-4.el7                  base       49 k
 perl-Storable            x86_64   2.45-3.el7                   base       77 k
 perl-Text-ParseWords     noarch   3.29-4.el7                   base       14 k
 perl-Time-HiRes          x86_64   4:1.9725-3.el7               base       45 k
 perl-Time-Local          noarch   1.2300-2.el7                 base       24 k
 perl-constant            noarch   1.27-2.el7                   base       19 k
 perl-libs                x86_64   4:5.16.3-294.el7_6           updates   688 k
 perl-macros              x86_64   4:5.16.3-294.el7_6           updates    44 k
 perl-parent              noarch   1:0.225-244.el7              base       12 k
 perl-podlators           noarch   2.5.1-3.el7                  base      112 k
 perl-threads             x86_64   1.87-4.el7                   base       49 k
 perl-threads-shared      x86_64   1.43-6.el7                   base       39 k
 vim-common               x86_64   2:7.4.160-5.el7              base      5.9 M
 vim-filesystem           x86_64   2:7.4.160-5.el7              base       10 k
 which                    x86_64   2.20-7.el7                   base       41 k

Transaction Summary
================================================================================
Install  5 Packages (+36 Dependent packages)

Total download size: 21 M
Installed size: 68 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              3.8 MB/s |  21 MB  00:05     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libnfnetlink-1.0.1-4.el7.x86_64                             1/41 
  Installing : libmnl-1.0.3-7.el7.x86_64                                   2/41 
  Installing : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64                 3/41 
  Installing : iptables-1.4.21-28.el7.x86_64                               4/41 
  Installing : 2:vim-filesystem-7.4.160-5.el7.x86_64                       5/41 
  Installing : 2:vim-common-7.4.160-5.el7.x86_64                           6/41 
  Installing : gpm-libs-1.20.7-5.el7.x86_64                                7/41 
  Installing : groff-base-1.22.2-8.el7.x86_64                              8/41 
  Installing : 1:perl-parent-0.225-244.el7.noarch                          9/41 
  Installing : perl-HTTP-Tiny-0.033-3.el7.noarch                          10/41 
  Installing : perl-podlators-2.5.1-3.el7.noarch                          11/41 
  Installing : perl-Pod-Perldoc-3.20-4.el7.noarch                         12/41 
  Installing : 1:perl-Pod-Escapes-1.04-294.el7_6.noarch                   13/41 
  Installing : perl-Encode-2.51-7.el7.x86_64                              14/41 
  Installing : perl-Text-ParseWords-3.29-4.el7.noarch                     15/41 
  Installing : perl-Pod-Usage-1.63-3.el7.noarch                           16/41 
  Installing : 4:perl-libs-5.16.3-294.el7_6.x86_64                        17/41 
  Installing : 4:perl-macros-5.16.3-294.el7_6.x86_64                      18/41 
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                      19/41 
  Installing : perl-Exporter-5.68-3.el7.noarch                            20/41 
  Installing : perl-constant-1.27-2.el7.noarch                            21/41 
  Installing : perl-Time-Local-1.2300-2.el7.noarch                        22/41 
  Installing : perl-Socket-2.010-4.el7.x86_64                             23/41 
  Installing : perl-Carp-1.26-244.el7.noarch                              24/41 
  Installing : perl-Storable-2.45-3.el7.x86_64                            25/41 
  Installing : perl-PathTools-3.40-5.el7.x86_64                           26/41 
  Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 27/41 
  Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch                        28/41 
  Installing : perl-File-Temp-0.23.01-3.el7.noarch                        29/41 
  Installing : perl-File-Path-2.09-2.el7.noarch                           30/41 
  Installing : perl-threads-shared-1.43-6.el7.x86_64                      31/41 
  Installing : perl-threads-1.87-4.el7.x86_64                             32/41 
  Installing : perl-Filter-1.49-3.el7.x86_64                              33/41 
  Installing : perl-Getopt-Long-2.40-3.el7.noarch                         34/41 
  Installing : 4:perl-5.16.3-294.el7_6.x86_64                             35/41 
  Installing : which-2.20-7.el7.x86_64                                    36/41 
install-info: No such file or directory for /usr/share/info/which.info.gz
  Installing : 2:vim-enhanced-7.4.160-5.el7.x86_64                        37/41 
  Installing : iproute-4.11.0-14.el7_6.2.x86_64                           38/41 
  Installing : net-tools-2.0-0.24.20131004git.el7.x86_64                  39/41 
  Installing : tree-1.6.0-10.el7.x86_64                                   40/41 
  Installing : lsof-4.87-6.el7.x86_64                                     41/41 
  Verifying  : perl-HTTP-Tiny-0.033-3.el7.noarch                           1/41 
  Verifying  : libmnl-1.0.3-7.el7.x86_64                                   2/41 
  Verifying  : iproute-4.11.0-14.el7_6.2.x86_64                            3/41 
  Verifying  : 2:vim-enhanced-7.4.160-5.el7.x86_64                         4/41 
  Verifying  : perl-threads-shared-1.43-6.el7.x86_64                       5/41 
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                       6/41 
  Verifying  : 1:perl-Pod-Escapes-1.04-294.el7_6.noarch                    7/41 
  Verifying  : lsof-4.87-6.el7.x86_64                                      8/41 
  Verifying  : perl-Exporter-5.68-3.el7.noarch                             9/41 
  Verifying  : perl-constant-1.27-2.el7.noarch                            10/41 
  Verifying  : perl-PathTools-3.40-5.el7.x86_64                           11/41 
  Verifying  : libnetfilter_conntrack-1.0.6-1.el7_3.x86_64                12/41 
  Verifying  : 1:perl-parent-0.225-244.el7.noarch                         13/41 
  Verifying  : which-2.20-7.el7.x86_64                                    14/41 
  Verifying  : 4:perl-libs-5.16.3-294.el7_6.x86_64                        15/41 
  Verifying  : groff-base-1.22.2-8.el7.x86_64                             16/41 
  Verifying  : perl-File-Temp-0.23.01-3.el7.noarch                        17/41 
  Verifying  : 1:perl-Pod-Simple-3.28-4.el7.noarch                        18/41 
  Verifying  : tree-1.6.0-10.el7.x86_64                                   19/41 
  Verifying  : perl-Time-Local-1.2300-2.el7.noarch                        20/41 
  Verifying  : gpm-libs-1.20.7-5.el7.x86_64                               21/41 
  Verifying  : 2:vim-common-7.4.160-5.el7.x86_64                          22/41 
  Verifying  : 4:perl-macros-5.16.3-294.el7_6.x86_64                      23/41 
  Verifying  : perl-Socket-2.010-4.el7.x86_64                             24/41 
  Verifying  : perl-Carp-1.26-244.el7.noarch                              25/41 
  Verifying  : net-tools-2.0-0.24.20131004git.el7.x86_64                  26/41 
  Verifying  : perl-Storable-2.45-3.el7.x86_64                            27/41 
  Verifying  : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 28/41 
  Verifying  : perl-Pod-Usage-1.63-3.el7.noarch                           29/41 
  Verifying  : iptables-1.4.21-28.el7.x86_64                              30/41 
  Verifying  : perl-Encode-2.51-7.el7.x86_64                              31/41 
  Verifying  : libnfnetlink-1.0.1-4.el7.x86_64                            32/41 
  Verifying  : perl-Pod-Perldoc-3.20-4.el7.noarch                         33/41 
  Verifying  : perl-podlators-2.5.1-3.el7.noarch                          34/41 
  Verifying  : perl-File-Path-2.09-2.el7.noarch                           35/41 
  Verifying  : perl-threads-1.87-4.el7.x86_64                             36/41 
  Verifying  : perl-Filter-1.49-3.el7.x86_64                              37/41 
  Verifying  : perl-Getopt-Long-2.40-3.el7.noarch                         38/41 
  Verifying  : perl-Text-ParseWords-3.29-4.el7.noarch                     39/41 
  Verifying  : 4:perl-5.16.3-294.el7_6.x86_64                             40/41 
  Verifying  : 2:vim-filesystem-7.4.160-5.el7.x86_64                      41/41 

Installed:
  iproute.x86_64 0:4.11.0-14.el7_6.2              lsof.x86_64 0:4.87-6.el7      
  net-tools.x86_64 0:2.0-0.24.20131004git.el7     tree.x86_64 0:1.6.0-10.el7    
  vim-enhanced.x86_64 2:7.4.160-5.el7            

Dependency Installed:
  gpm-libs.x86_64 0:1.20.7-5.el7                                                
  groff-base.x86_64 0:1.22.2-8.el7                                              
  iptables.x86_64 0:1.4.21-28.el7                                               
  libmnl.x86_64 0:1.0.3-7.el7                                                   
  libnetfilter_conntrack.x86_64 0:1.0.6-1.el7_3                                 
  libnfnetlink.x86_64 0:1.0.1-4.el7                                             
  perl.x86_64 4:5.16.3-294.el7_6                                                
  perl-Carp.noarch 0:1.26-244.el7                                               
  perl-Encode.x86_64 0:2.51-7.el7                                               
  perl-Exporter.noarch 0:5.68-3.el7                                             
  perl-File-Path.noarch 0:2.09-2.el7                                            
  perl-File-Temp.noarch 0:0.23.01-3.el7                                         
  perl-Filter.x86_64 0:1.49-3.el7                                               
  perl-Getopt-Long.noarch 0:2.40-3.el7                                          
  perl-HTTP-Tiny.noarch 0:0.033-3.el7                                           
  perl-PathTools.x86_64 0:3.40-5.el7                                            
  perl-Pod-Escapes.noarch 1:1.04-294.el7_6                                      
  perl-Pod-Perldoc.noarch 0:3.20-4.el7                                          
  perl-Pod-Simple.noarch 1:3.28-4.el7                                           
  perl-Pod-Usage.noarch 0:1.63-3.el7                                            
  perl-Scalar-List-Utils.x86_64 0:1.27-248.el7                                  
  perl-Socket.x86_64 0:2.010-4.el7                                              
  perl-Storable.x86_64 0:2.45-3.el7                                             
  perl-Text-ParseWords.noarch 0:3.29-4.el7                                      
  perl-Time-HiRes.x86_64 4:1.9725-3.el7                                         
  perl-Time-Local.noarch 0:1.2300-2.el7                                         
  perl-constant.noarch 0:1.27-2.el7                                             
  perl-libs.x86_64 4:5.16.3-294.el7_6                                           
  perl-macros.x86_64 4:5.16.3-294.el7_6                                         
  perl-parent.noarch 1:0.225-244.el7                                            
  perl-podlators.noarch 0:2.5.1-3.el7                                           
  perl-threads.x86_64 0:1.87-4.el7                                              
  perl-threads-shared.x86_64 0:1.43-6.el7                                       
  vim-common.x86_64 2:7.4.160-5.el7                                             
  vim-filesystem.x86_64 2:7.4.160-5.el7                                         
  which.x86_64 0:2.20-7.el7                                                     

Complete!
Removing intermediate container e465add73fb4
 ---> 5f7600975a99
Step 15/17 : RUN chmod u+x ${EXE_DIR}/*.sh && find ${EXE_DIR} -name "*.sh" | while read line;do bash -c ${line};done
 ---> Running in bc9dd63c0c32
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ftp-srv2.kddilabs.jp
 * extras: ftp-srv2.kddilabs.jp
 * updates: ftp-srv2.kddilabs.jp
Resolving Dependencies
--> Running transaction check
---> Package dbus.x86_64 1:1.10.24-12.el7 will be updated
---> Package dbus.x86_64 1:1.10.24-13.el7_6 will be an update
---> Package dbus-libs.x86_64 1:1.10.24-12.el7 will be updated
---> Package dbus-libs.x86_64 1:1.10.24-13.el7_6 will be an update
---> Package device-mapper.x86_64 7:1.02.149-10.el7_6.3 will be updated
---> Package device-mapper.x86_64 7:1.02.149-10.el7_6.7 will be an update
---> Package device-mapper-libs.x86_64 7:1.02.149-10.el7_6.3 will be updated
---> Package device-mapper-libs.x86_64 7:1.02.149-10.el7_6.7 will be an update
---> Package glibc.x86_64 0:2.17-260.el7_6.3 will be updated
---> Package glibc.x86_64 0:2.17-260.el7_6.4 will be an update
---> Package glibc-common.x86_64 0:2.17-260.el7_6.3 will be updated
---> Package glibc-common.x86_64 0:2.17-260.el7_6.4 will be an update
---> Package libblkid.x86_64 0:2.23.2-59.el7 will be updated
---> Package libblkid.x86_64 0:2.23.2-59.el7_6.1 will be an update
---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-36.el7_6.2 will be an update
---> Package libmount.x86_64 0:2.23.2-59.el7 will be updated
---> Package libmount.x86_64 0:2.23.2-59.el7_6.1 will be an update
---> Package libsmartcols.x86_64 0:2.23.2-59.el7 will be updated
---> Package libsmartcols.x86_64 0:2.23.2-59.el7_6.1 will be an update
---> Package libssh2.x86_64 0:1.4.3-12.el7 will be updated
---> Package libssh2.x86_64 0:1.4.3-12.el7_6.2 will be an update
---> Package libstdc++.x86_64 0:4.8.5-36.el7 will be updated
---> Package libstdc++.x86_64 0:4.8.5-36.el7_6.2 will be an update
---> Package libuuid.x86_64 0:2.23.2-59.el7 will be updated
---> Package libuuid.x86_64 0:2.23.2-59.el7_6.1 will be an update
---> Package nss-pem.x86_64 0:1.0.3-5.el7 will be updated
---> Package nss-pem.x86_64 0:1.0.3-5.el7_6.1 will be an update
---> Package openssl-libs.x86_64 1:1.0.2k-16.el7 will be updated
---> Package openssl-libs.x86_64 1:1.0.2k-16.el7_6.1 will be an update
---> Package python.x86_64 0:2.7.5-76.el7 will be updated
---> Package python.x86_64 0:2.7.5-77.el7_6 will be an update
---> Package python-libs.x86_64 0:2.7.5-76.el7 will be updated
---> Package python-libs.x86_64 0:2.7.5-77.el7_6 will be an update
---> Package shadow-utils.x86_64 2:4.1.5.1-25.el7 will be updated
---> Package shadow-utils.x86_64 2:4.1.5.1-25.el7_6.1 will be an update
---> Package systemd.x86_64 0:219-62.el7_6.5 will be updated
---> Package systemd.x86_64 0:219-62.el7_6.6 will be an update
---> Package systemd-libs.x86_64 0:219-62.el7_6.5 will be updated
---> Package systemd-libs.x86_64 0:219-62.el7_6.6 will be an update
---> Package tzdata.noarch 0:2018i-1.el7 will be updated
---> Package tzdata.noarch 0:2019a-1.el7 will be an update
---> Package util-linux.x86_64 0:2.23.2-59.el7 will be updated
---> Package util-linux.x86_64 0:2.23.2-59.el7_6.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch       Version                    Repository   Size
================================================================================
Updating:
 dbus                   x86_64     1:1.10.24-13.el7_6         updates     245 k
 dbus-libs              x86_64     1:1.10.24-13.el7_6         updates     169 k
 device-mapper          x86_64     7:1.02.149-10.el7_6.7      updates     293 k
 device-mapper-libs     x86_64     7:1.02.149-10.el7_6.7      updates     320 k
 glibc                  x86_64     2.17-260.el7_6.4           updates     3.7 M
 glibc-common           x86_64     2.17-260.el7_6.4           updates      12 M
 libblkid               x86_64     2.23.2-59.el7_6.1          updates     181 k
 libgcc                 x86_64     4.8.5-36.el7_6.2           updates     102 k
 libmount               x86_64     2.23.2-59.el7_6.1          updates     182 k
 libsmartcols           x86_64     2.23.2-59.el7_6.1          updates     140 k
 libssh2                x86_64     1.4.3-12.el7_6.2           updates     135 k
 libstdc++              x86_64     4.8.5-36.el7_6.2           updates     305 k
 libuuid                x86_64     2.23.2-59.el7_6.1          updates      82 k
 nss-pem                x86_64     1.0.3-5.el7_6.1            updates      74 k
 openssl-libs           x86_64     1:1.0.2k-16.el7_6.1        updates     1.2 M
 python                 x86_64     2.7.5-77.el7_6             updates      94 k
 python-libs            x86_64     2.7.5-77.el7_6             updates     5.6 M
 shadow-utils           x86_64     2:4.1.5.1-25.el7_6.1       updates     1.1 M
 systemd                x86_64     219-62.el7_6.6             updates     5.1 M
 systemd-libs           x86_64     219-62.el7_6.6             updates     407 k
 tzdata                 noarch     2019a-1.el7                updates     494 k
 util-linux             x86_64     2.23.2-59.el7_6.1          updates     2.0 M

Transaction Summary
================================================================================
Upgrade  22 Packages

Total download size: 33 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total                                              4.8 MB/s |  33 MB  00:06     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libgcc-4.8.5-36.el7_6.2.x86_64                              1/44 
  Updating   : tzdata-2019a-1.el7.noarch                                   2/44 
  Updating   : glibc-common-2.17-260.el7_6.4.x86_64                        3/44 
  Updating   : glibc-2.17-260.el7_6.4.x86_64                               4/44 
  Updating   : systemd-libs-219-62.el7_6.6.x86_64                          5/44 
  Updating   : libuuid-2.23.2-59.el7_6.1.x86_64                            6/44 
  Updating   : libblkid-2.23.2-59.el7_6.1.x86_64                           7/44 
  Updating   : libmount-2.23.2-59.el7_6.1.x86_64                           8/44 
  Updating   : 2:shadow-utils-4.1.5.1-25.el7_6.1.x86_64                    9/44 
  Updating   : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64                    10/44 
  Updating   : python-libs-2.7.5-77.el7_6.x86_64                          11/44 
  Updating   : 1:dbus-libs-1.10.24-13.el7_6.x86_64                        12/44 
  Updating   : systemd-219-62.el7_6.6.x86_64                              13/44 
Failed to get D-Bus connection: Operation not permitted
  Updating   : 1:dbus-1.10.24-13.el7_6.x86_64                             14/44 
  Updating   : libsmartcols-2.23.2-59.el7_6.1.x86_64                      15/44 
  Updating   : util-linux-2.23.2-59.el7_6.1.x86_64                        16/44 
  Updating   : 7:device-mapper-libs-1.02.149-10.el7_6.7.x86_64            17/44 
  Updating   : 7:device-mapper-1.02.149-10.el7_6.7.x86_64                 18/44 
  Updating   : python-2.7.5-77.el7_6.x86_64                               19/44 
  Updating   : libssh2-1.4.3-12.el7_6.2.x86_64                            20/44 
  Updating   : nss-pem-1.0.3-5.el7_6.1.x86_64                             21/44 
  Updating   : libstdc++-4.8.5-36.el7_6.2.x86_64                          22/44 
  Cleanup    : 7:device-mapper-1.02.149-10.el7_6.3.x86_64                 23/44 
  Cleanup    : 7:device-mapper-libs-1.02.149-10.el7_6.3.x86_64            24/44 
  Cleanup    : 1:dbus-1.10.24-12.el7.x86_64                               25/44 
  Cleanup    : systemd-219-62.el7_6.5.x86_64                              26/44 
  Cleanup    : util-linux-2.23.2-59.el7.x86_64                            27/44 
  Cleanup    : libmount-2.23.2-59.el7.x86_64                              28/44 
  Cleanup    : python-2.7.5-76.el7.x86_64                                 29/44 
  Cleanup    : python-libs-2.7.5-76.el7.x86_64                            30/44 
  Cleanup    : libblkid-2.23.2-59.el7.x86_64                              31/44 
  Cleanup    : 1:dbus-libs-1.10.24-12.el7.x86_64                          32/44 
  Cleanup    : systemd-libs-219-62.el7_6.5.x86_64                         33/44 
  Cleanup    : libssh2-1.4.3-12.el7.x86_64                                34/44 
  Cleanup    : libstdc++-4.8.5-36.el7.x86_64                              35/44 
  Cleanup    : 1:openssl-libs-1.0.2k-16.el7.x86_64                        36/44 
  Cleanup    : libuuid-2.23.2-59.el7.x86_64                               37/44 
  Cleanup    : libsmartcols-2.23.2-59.el7.x86_64                          38/44 
  Cleanup    : 2:shadow-utils-4.1.5.1-25.el7.x86_64                       39/44 
  Cleanup    : nss-pem-1.0.3-5.el7.x86_64                                 40/44 
  Cleanup    : glibc-common-2.17-260.el7_6.3.x86_64                       41/44 
  Cleanup    : glibc-2.17-260.el7_6.3.x86_64                              42/44 
  Cleanup    : tzdata-2018i-1.el7.noarch                                  43/44 
  Cleanup    : libgcc-4.8.5-36.el7.x86_64                                 44/44 
  Verifying  : nss-pem-1.0.3-5.el7_6.1.x86_64                              1/44 
  Verifying  : libblkid-2.23.2-59.el7_6.1.x86_64                           2/44 
  Verifying  : util-linux-2.23.2-59.el7_6.1.x86_64                         3/44 
  Verifying  : libmount-2.23.2-59.el7_6.1.x86_64                           4/44 
  Verifying  : python-libs-2.7.5-77.el7_6.x86_64                           5/44 
  Verifying  : libstdc++-4.8.5-36.el7_6.2.x86_64                           6/44 
  Verifying  : 2:shadow-utils-4.1.5.1-25.el7_6.1.x86_64                    7/44 
  Verifying  : libssh2-1.4.3-12.el7_6.2.x86_64                             8/44 
  Verifying  : libgcc-4.8.5-36.el7_6.2.x86_64                              9/44 
  Verifying  : tzdata-2019a-1.el7.noarch                                  10/44 
  Verifying  : 1:dbus-libs-1.10.24-13.el7_6.x86_64                        11/44 
  Verifying  : 7:device-mapper-libs-1.02.149-10.el7_6.7.x86_64            12/44 
  Verifying  : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64                    13/44 
  Verifying  : python-2.7.5-77.el7_6.x86_64                               14/44 
  Verifying  : libsmartcols-2.23.2-59.el7_6.1.x86_64                      15/44 
  Verifying  : 1:dbus-1.10.24-13.el7_6.x86_64                             16/44 
  Verifying  : libuuid-2.23.2-59.el7_6.1.x86_64                           17/44 
  Verifying  : glibc-common-2.17-260.el7_6.4.x86_64                       18/44 
  Verifying  : glibc-2.17-260.el7_6.4.x86_64                              19/44 
  Verifying  : systemd-libs-219-62.el7_6.6.x86_64                         20/44 
  Verifying  : systemd-219-62.el7_6.6.x86_64                              21/44 
  Verifying  : 7:device-mapper-1.02.149-10.el7_6.7.x86_64                 22/44 
  Verifying  : python-2.7.5-76.el7.x86_64                                 23/44 
  Verifying  : libblkid-2.23.2-59.el7.x86_64                              24/44 
  Verifying  : 1:dbus-1.10.24-12.el7.x86_64                               25/44 
  Verifying  : libgcc-4.8.5-36.el7.x86_64                                 26/44 
  Verifying  : libstdc++-4.8.5-36.el7.x86_64                              27/44 
  Verifying  : 1:openssl-libs-1.0.2k-16.el7.x86_64                        28/44 
  Verifying  : glibc-2.17-260.el7_6.3.x86_64                              29/44 
  Verifying  : 7:device-mapper-libs-1.02.149-10.el7_6.3.x86_64            30/44 
  Verifying  : libuuid-2.23.2-59.el7.x86_64                               31/44 
  Verifying  : nss-pem-1.0.3-5.el7.x86_64                                 32/44 
  Verifying  : libssh2-1.4.3-12.el7.x86_64                                33/44 
  Verifying  : systemd-libs-219-62.el7_6.5.x86_64                         34/44 
  Verifying  : 1:dbus-libs-1.10.24-12.el7.x86_64                          35/44 
  Verifying  : systemd-219-62.el7_6.5.x86_64                              36/44 
  Verifying  : 2:shadow-utils-4.1.5.1-25.el7.x86_64                       37/44 
  Verifying  : libmount-2.23.2-59.el7.x86_64                              38/44 
  Verifying  : util-linux-2.23.2-59.el7.x86_64                            39/44 
  Verifying  : libsmartcols-2.23.2-59.el7.x86_64                          40/44 
  Verifying  : python-libs-2.7.5-76.el7.x86_64                            41/44 
  Verifying  : tzdata-2018i-1.el7.noarch                                  42/44 
  Verifying  : glibc-common-2.17-260.el7_6.3.x86_64                       43/44 
  Verifying  : 7:device-mapper-1.02.149-10.el7_6.3.x86_64                 44/44 

Updated:
  dbus.x86_64 1:1.10.24-13.el7_6                                                
  dbus-libs.x86_64 1:1.10.24-13.el7_6                                           
  device-mapper.x86_64 7:1.02.149-10.el7_6.7                                    
  device-mapper-libs.x86_64 7:1.02.149-10.el7_6.7                               
  glibc.x86_64 0:2.17-260.el7_6.4                                               
  glibc-common.x86_64 0:2.17-260.el7_6.4                                        
  libblkid.x86_64 0:2.23.2-59.el7_6.1                                           
  libgcc.x86_64 0:4.8.5-36.el7_6.2                                              
  libmount.x86_64 0:2.23.2-59.el7_6.1                                           
  libsmartcols.x86_64 0:2.23.2-59.el7_6.1                                       
  libssh2.x86_64 0:1.4.3-12.el7_6.2                                             
  libstdc++.x86_64 0:4.8.5-36.el7_6.2                                           
  libuuid.x86_64 0:2.23.2-59.el7_6.1                                            
  nss-pem.x86_64 0:1.0.3-5.el7_6.1                                              
  openssl-libs.x86_64 1:1.0.2k-16.el7_6.1                                       
  python.x86_64 0:2.7.5-77.el7_6                                                
  python-libs.x86_64 0:2.7.5-77.el7_6                                           
  shadow-utils.x86_64 2:4.1.5.1-25.el7_6.1                                      
  systemd.x86_64 0:219-62.el7_6.6                                               
  systemd-libs.x86_64 0:219-62.el7_6.6                                          
  tzdata.noarch 0:2019a-1.el7                                                   
  util-linux.x86_64 0:2.23.2-59.el7_6.1                                         

Complete!
Loaded plugins: fastestmirror, ovl
Cleaning repos: base extras updates
Cleaning up list of fastest mirrors
Removing intermediate container bc9dd63c0c32
 ---> 1f439da4ac76
Step 16/17 : EXPOSE 80
 ---> Running in b4b0eba2f76a
Removing intermediate container b4b0eba2f76a
 ---> fc3b54baa6b6
Step 17/17 : CMD ["/sbin/init"]
 ---> Running in 0f8f69bc2d8f
Removing intermediate container 0f8f69bc2d8f
 ---> 0cebeaa888c4
Successfully built 0cebeaa888c4
Successfully tagged apache/httpd:latest

_________________________________________________________________________________

-->apache/httpd was built

Build completed in 117 seconds.


[oracle@centos tmp]$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
apache/httpd        latest              0cebeaa888c4        3 minutes ago       503MB

[oracle@centos tmp]$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                  NAMES
aaf4852dabab        apache/httpd        "/sbin/init"        4 minutes ago       Up 3 minutes        0.0.0.0:8080->80/tcp   test1

Docker imagesの確認

コード表示

[oracle@centos tmp]$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
apache/httpd        latest              0cebeaa888c4        34 minutes ago      503MB

起動コンテナの確認

コード表示

[oracle@centos tmp]$ docker stop $(docker ps -qa) && docker rm $(docker ps -qa)
5edf42a78b62
5edf42a78b62
[oracle@centos tmp]$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

コンテナ起動

コード表示

[oracle@centos tmp]$ docker run -p 8080:80 --privileged -it --name test1 -d apache/httpd
055aaa91b9a15429d38b546302a2ffb1032bb8cb5609d753d49fef437c5227e8
[oracle@centos tmp]$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                  NAMES
055aaa91b9a1        apache/httpd        "/sbin/init"        5 seconds ago       Up 4 seconds        0.0.0.0:8080->80/tcp   test1

コンテナ中に潜る

コード表示

[oracle@centos tmp]$ docker exec -it test1 /bin/bash
[root@f6f256dd2e99 /]# whoami
root

ここからが結構楽しい

apacheでぐぐる

コード表示

[root@f6f256dd2e99 /]# find . -name *apache* 2>/dev/null
./sys/fs/selinux/booleans/awstats_purge_apache_log_files
./usr/share/vim/vim74/syntax/apachestyle.vim
./usr/share/vim/vim74/syntax/apache.vim
./usr/share/httpd/noindex/images/apache_pb.gif
./usr/share/httpd/icons/apache_pb.png
./usr/share/httpd/icons/apache_pb2.png
./usr/share/httpd/icons/apache_pb.svg
./usr/share/httpd/icons/apache_pb2.gif
./usr/share/httpd/icons/apache_pb.gif
./usr/sbin/apachectl

ここらへんのやつひろう

コード表示

[root@f6f256dd2e99 /]# find . -name *httpd* 2>/dev/null | grep -E "conf|log|bin|service"
./sys/fs/selinux/booleans/httpd_mod_auth_ntlm_winbind
./usr/lib/systemd/system/httpd.service
./usr/lib/tmpfiles.d/httpd.conf
./usr/sbin/httpd
./var/log/httpd
./etc/logrotate.d/httpd
./etc/sysconfig/httpd
./etc/httpd/conf/httpd.conf

プロセス確認する。httpdプロセス起動させた。

コード表示

[root@f6f256dd2e99 /]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  51288  3340 ?        Ss   12:51   0:00 /sbin/init
root        17  0.0  0.0  39084  5964 ?        Ss   12:51   0:00 /usr/lib/systemd/systemd-journald
root        29  0.0  0.0  35320  2076 ?        Ss   12:51   0:00 /usr/lib/systemd/systemd-udevd
dbus       806  0.0  0.0  58104  2104 ?        Ss   12:51   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root       910  0.0  0.0  24252  1560 ?        Ss   12:51   0:00 /usr/lib/systemd/systemd-logind
root      2713  0.0  0.0  11820  1892 pts/1    Ss   12:51   0:00 /bin/bash
root      3119  1.0  0.0  90264  1896 tty1     Ss+  13:04   0:00 /bin/login --                     
root      3150  0.0  0.0  51740  1740 pts/1    R+   13:05   0:00 ps aux
[root@f6f256dd2e99 /]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:httpd(8)
           man:apachectl(8)
[root@f6f256dd2e99 /]# systemctl start httpd.service
[root@f6f256dd2e99 /]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-04-29 13:08:15 UTC; 2s ago
     Docs: man:httpd(8)
           man:apachectl(8)
 Main PID: 3297 (httpd)
   Status: "Processing requests..."
   CGroup: /docker/f6f256dd2e9999869e12e18a2eee82a56a3260fb69d5fa6aa6f6760575f438b2/system.slice/httpd.service
           ├─3297 /usr/sbin/httpd -DFOREGROUND
           ├─3298 /usr/sbin/httpd -DFOREGROUND
           ├─3299 /usr/sbin/httpd -DFOREGROUND
           ├─3300 /usr/sbin/httpd -DFOREGROUND
           ├─3301 /usr/sbin/httpd -DFOREGROUND
           └─3302 /usr/sbin/httpd -DFOREGROUND
           ‣ 3297 /usr/sbin/httpd -DFOREGROUND

Apr 29 13:08:15 f6f256dd2e99 systemd[1]: Starting The Apache HTTP Server...
Apr 29 13:08:15 f6f256dd2e99 httpd[3297]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
Apr 29 13:08:15 f6f256dd2e99 systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@f6f256dd2e99 /]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  51376  3448 ?        Ss   12:51   0:00 /sbin/init
root        17  0.0  0.0  39084  5992 ?        Ss   12:51   0:00 /usr/lib/systemd/systemd-journald
root        29  0.0  0.0  35320  2076 ?        Ss   12:51   0:00 /usr/lib/systemd/systemd-udevd
dbus       806  0.0  0.0  58104  2104 ?        Ss   12:51   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root       910  0.0  0.0  24252  1560 ?        Ss   12:51   0:00 /usr/lib/systemd/systemd-logind
root      2713  0.0  0.0  11820  1892 pts/1    Ss   12:51   0:00 /bin/bash
root      3297  0.0  0.0 224052  4984 ?        Ss   13:08   0:00 /usr/sbin/httpd -DFOREGROUND
apache    3298  0.0  0.0 224052  2952 ?        S    13:08   0:00 /usr/sbin/httpd -DFOREGROUND
apache    3299  0.0  0.0 224052  2952 ?        S    13:08   0:00 /usr/sbin/httpd -DFOREGROUND
apache    3300  0.0  0.0 224052  2952 ?        S    13:08   0:00 /usr/sbin/httpd -DFOREGROUND
apache    3301  0.0  0.0 224052  2952 ?        S    13:08   0:00 /usr/sbin/httpd -DFOREGROUND
apache    3302  0.0  0.0 224052  2952 ?        S    13:08   0:00 /usr/sbin/httpd -DFOREGROUND
root      3313  0.8  0.0  90264  1984 tty1     Ss+  13:08   0:00 /bin/login --  
root      3352  0.0  0.0  51740  1748 pts/1    R+   13:09   0:00 ps aux

apachectlとかつかえそう

コード表示

[root@055aaa91b9a1 /]# apachectl -h
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
                       [-C "directive"] [-c "directive"]
                       [-k start|restart|graceful|graceful-stop|stop]
                       [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
  -D name            : define a name for use in  directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed vhost settings
  -t -D DUMP_RUN_CFG : show parsed run settings
  -S                 : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
  -t -D DUMP_MODULES : show all loaded modules 
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files
  -T                 : start without DocumentRoot(s) check
  -X                 : debug mode (only one worker, do not detach)
[root@055aaa91b9a1 /]# apachectl -v
Server version: Apache/2.4.6 (CentOS)
Server built:   Nov  5 2018 01:47:09
[root@055aaa91b9a1 /]# apachectl -t
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
Syntax OK
[root@055aaa91b9a1 /]# apachectl -T
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
httpd (pid 2733) already running
[root@055aaa91b9a1 /]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  43180  3440 ?        Ss   13:14   0:00 /sbin/init
root        19  0.0  0.0  39084  5996 ?        Ss   13:14   0:00 /usr/lib/systemd/systemd-journald
root        30  0.0  0.0  35604  2364 ?        Ss   13:14   0:00 /usr/lib/systemd/systemd-udevd
dbus       617  0.0  0.0  58104  2104 ?        Ss   13:14   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root       711  0.0  0.0  24252  1536 ?        Ss   13:14   0:00 /usr/lib/systemd/systemd-logind
root      2713  0.0  0.0  11820  1896 pts/1    Ss   13:15   0:00 /bin/bash
root      2733  0.0  0.0 224052  4980 ?        Ss   13:15   0:00 /usr/sbin/httpd -DFOREGROUND
apache    2734  0.0  0.0 224052  2948 ?        S    13:15   0:00 /usr/sbin/httpd -DFOREGROUND
apache    2735  0.0  0.0 224052  2948 ?        S    13:15   0:00 /usr/sbin/httpd -DFOREGROUND
apache    2736  0.0  0.0 224052  2948 ?        S    13:15   0:00 /usr/sbin/httpd -DFOREGROUND
apache    2737  0.0  0.0 224052  2948 ?        S    13:15   0:00 /usr/sbin/httpd -DFOREGROUND
apache    2738  0.0  0.0 224052  2948 ?        S    13:15   0:00 /usr/sbin/httpd -DFOREGROUND
root      2794  0.0  0.0  21704   788 tty1     Rs+  13:21   0:00 /bin/login --       
root      2795  0.0  0.0  51740  1752 pts/1    R+   13:21   0:00 ps aux

サーバー名とかポート番号とか確認してみる

コード表示

[root@055aaa91b9a1 /]# cat /etc/httpd/conf/httpd.conf | grep -A 20 "Name"
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80

#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other 
#  blocks below.
#

    AllowOverride none
    Require all denied


#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# DocumentRoot: The directory out of which you will serve your

Listen確認

コード表示

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the 
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
Include conf.modules.d/*.conf

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
[root@055aaa91b9a1 /]# cat /etc/httpd/conf/httpd.conf | grep -A 10 "ServerRoot"
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'
# with ServerRoot set to '/www' will be interpreted by the
# server as '/www/log/access_log', where as '/log/access_log' will be
# interpreted as '/log/access_log'.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "/etc/httpd"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the 
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
[root@055aaa91b9a1 /]# cat /etc/httpd/conf/httpd.conf | grep -A 10 "log"
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'
# with ServerRoot set to '/www' will be interpreted by the
# server as '/www/log/access_log', where as '/log/access_log' will be
# interpreted as '/log/access_log'.

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "/etc/httpd"

#
--
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a 
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a 
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error_log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn


    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a 
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per- access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "logs/access_log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "logs/access_log" combined



    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar


動作確認

うてばいい

コード表示

http://192.168.1.109:8080とかアドレスバーに入力してEnter。

ログとか見る

コード表示

[root@055aaa91b9a1 /]# cd /etc/httpd
[root@055aaa91b9a1 httpd]# ls -lt
total 12
drwxr-xr-x. 2 root root 4096 Apr 29 12:31 conf
drwxr-xr-x. 2 root root 4096 Apr 29 12:31 conf.d
drwxr-xr-x. 2 root root 4096 Apr 29 12:31 conf.modules.d
lrwxrwxrwx. 1 root root   19 Apr 29 12:31 logs -> ../../var/log/httpd
lrwxrwxrwx. 1 root root   29 Apr 29 12:31 modules -> ../../usr/lib64/httpd/modules
lrwxrwxrwx. 1 root root   10 Apr 29 12:31 run -> /run/httpd
[root@055aaa91b9a1 httpd]# vi logs
[root@055aaa91b9a1 httpd]# cd logs
[root@055aaa91b9a1 logs]# pwd
/etc/httpd/logs
[root@055aaa91b9a1 logs]# ls
access_log  error_log

[root@055aaa91b9a1 logs]# vi access_log
192.168.1.109 - - [29/Apr/2019:13:30:07 +0000] "GET / HTTP/1.1" 200 125 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36"
192.168.1.109 - - [29/Apr/2019:13:30:07 +0000] "GET /favicon.ico HTTP/1.1" 404 209 "http://192.168.1.109:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36"
192.168.1.109 - - [29/Apr/2019:13:30:59 +0000] "-" 408 - "-" "-"

[root@055aaa91b9a1 logs]# vi error_log
[Mon Apr 29 13:15:37.766768 2019] [suexec:notice] [pid 2733] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
[Mon Apr 29 13:15:37.772196 2019] [auth_digest:notice] [pid 2733] AH01757: generating secret for digest authentication ...
[Mon Apr 29 13:15:37.772682 2019] [lbmethod_heartbeat:notice] [pid 2733] AH02282: No slotmem from mod_heartmonitor
[Mon Apr 29 13:15:37.774138 2019] [mpm_prefork:notice] [pid 2733] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Mon Apr 29 13:15:37.774150 2019] [core:notice] [pid 2733] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

curlアタックスクリプト

コード表示

[oracle@centos tmp]$ ll
合計 16
-rw-r--r--. 1 oracle docker 254  4月 29 21:30 Dockerfile
-rwxr--r--. 1 oracle docker 197  4月 29 22:48 atk.sh
-rw-r--r--. 1 oracle docker 125  4月 29 20:20 index.html
-rwxr--r--. 1 oracle docker 570  4月 29 21:06 kick.sh
[oracle@centos tmp]$ cat atk.sh
#!/bin/bash
 
cnt=0
trap 'echo '';echo "try count:${cnt}";exit 1;' INT                                                       
 
while :
do
  curl -o /dev/null $1
  cnt=$((${cnt}+1))
  sleep 1
done

アタックしつつtail -fでログ監査

terminal2つ開いて

コード表示

--one session
[oracle@centos tmp]$ ./atk.sh http://192.168.1.109:8080
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0  70343      0 --:--:-- --:--:-- --:--:--  122k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0   105k      0 --:--:-- --:--:-- --:--:--  122k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0  22253      0 --:--:-- --:--:-- --:--:-- 25000
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0   101k      0 --:--:-- --:--:-- --:--:--  122k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0   105k      0 --:--:-- --:--:-- --:--:--  122k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0   107k      0 --:--:-- --:--:-- --:--:--  122k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0   131k      0 --:--:-- --:--:-- --:--:--  122k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125  100   125    0     0   112k      0 --:--:-- --:--:-- --:--:--  122k
^C
try count:8
--another session
[root@055aaa91b9a1 logs]# tail -f access_log
192.168.1.109 - - [29/Apr/2019:13:30:07 +0000] "GET / HTTP/1.1" 200 125 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36"
192.168.1.109 - - [29/Apr/2019:13:30:07 +0000] "GET /favicon.ico HTTP/1.1" 404 209 "http://192.168.1.109:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36"
192.168.1.109 - - [29/Apr/2019:13:30:59 +0000] "-" 408 - "-" "-"
192.168.1.109 - - [29/Apr/2019:13:49:35 +0000] "GET / HTTP/1.1" 200 125 "-" "curl/7.29.0"
192.168.1.109 - - [29/Apr/2019:13:49:36 +0000] "GET / HTTP/1.1" 200 125 "-" "curl/7.29.0"
192.168.1.109 - - [29/Apr/2019:13:49:37 +0000] "GET / HTTP/1.1" 200 125 "-" "curl/7.29.0"
192.168.1.109 - - [29/Apr/2019:13:49:38 +0000] "GET / HTTP/1.1" 200 125 "-" "curl/7.29.0"
192.168.1.109 - - [29/Apr/2019:13:49:39 +0000] "GET / HTTP/1.1" 200 125 "-" "curl/7.29.0"
192.168.1.109 - - [29/Apr/2019:13:49:40 +0000] "GET / HTTP/1.1" 200 125 "-" "curl/7.29.0"
192.168.1.109 - - [29/Apr/2019:13:49:41 +0000] "GET / HTTP/1.1" 200 125 "-" "curl/7.29.0"
192.168.1.109 - - [29/Apr/2019:13:49:42 +0000] "GET / HTTP/1.1" 200 125 "-" "curl/7.29.0"

Docker便利

awkでログ題材にしてたから、つくったってログファイル生成したかったのが本音でした。

Leave a Reply

Your email address will not be published. Required fields are marked *