Dockerfile Image 생성# Virtualation/Docker2021. 8. 19. 18:06
Table of Contents
728x90
반응형
[root@darksharavim home]# docker -v
Docker version 1.13.1, build 7d71120/1.13.1
[root@darksharavim home]# vi Dockerfile
FROM centos
MAINTAINER darksharavim
RUN yum -y install httpd
[root@darksharavim home]# docker build -t myweb:01 ./
Sending build context to Docker daemon 3.177 GB
Step 1/3 : FROM centos
Trying to pull repository docker.io/library/centos ...
latest: Pulling from docker.io/library/centos
7a0437f04f83: Pull complete
Digest: sha256:5528e8b1b1719d34604c87e11dcd1c0a20bedf46e83b5632cdeac91b8c04efc1
Status: Downloaded newer image for docker.io/centos:latest
---> 300e315adb2f
Step 2/3 : MAINTAINER nikeshoes
---> Running in 9cf630f50eb7
---> 7114620b905d
Removing intermediate container 9cf630f50eb7
Step 3/3 : RUN yum -y install httpd
---> Running in 648014fc8a31
CentOS Linux 8 - AppStream 9.6 MB/s | 8.8 MB 00:00
CentOS Linux 8 - BaseOS 7.0 MB/s | 5.6 MB 00:00
CentOS Linux 8 - Extras 17 kB/s | 10 kB 00:00
Last metadata expiration check: 0:00:01 ago on Thu Sep 2 04:58:52 2021.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
httpd x86_64 2.4.37-39.module_el8.4.0+778+c970deab appstream 1.4 M
Installing dependencies:
apr x86_64 1.6.3-11.el8 appstream 125 k
apr-util x86_64 1.6.1-6.el8 appstream 105 k
brotli x86_64 1.0.6-3.el8 baseos 323 k
centos-logos-httpd
noarch 85.8-1.el8 baseos 75 k
httpd-filesystem noarch 2.4.37-39.module_el8.4.0+778+c970deab appstream 38 k
httpd-tools x86_64 2.4.37-39.module_el8.4.0+778+c970deab appstream 106 k
mailcap noarch 2.1.48-3.el8 baseos 39 k
mod_http2 x86_64 1.15.7-3.module_el8.4.0+778+c970deab appstream 154 k
Installing weak dependencies:
apr-util-bdb x86_64 1.6.1-6.el8 appstream 25 k
apr-util-openssl x86_64 1.6.1-6.el8 appstream 27 k
Enabling module streams:
httpd 2.4
Transaction Summary
================================================================================
Install 11 Packages
Total download size: 2.4 M
Installed size: 7.1 M
Downloading Packages:
(1/11): apr-util-bdb-1.6.1-6.el8.x86_64.rpm 2.3 MB/s | 25 kB 00:00
(2/11): apr-util-openssl-1.6.1-6.el8.x86_64.rpm 4.0 MB/s | 27 kB 00:00
(3/11): apr-util-1.6.1-6.el8.x86_64.rpm 4.9 MB/s | 105 kB 00:00
(4/11): apr-1.6.3-11.el8.x86_64.rpm 4.9 MB/s | 125 kB 00:00
(5/11): httpd-tools-2.4.37-39.module_el8.4.0+77 6.5 MB/s | 106 kB 00:00
(6/11): httpd-filesystem-2.4.37-39.module_el8.4 1.7 MB/s | 38 kB 00:00
(7/11): mod_http2-1.15.7-3.module_el8.4.0+778+c 7.0 MB/s | 154 kB 00:00
(8/11): httpd-2.4.37-39.module_el8.4.0+778+c970 12 MB/s | 1.4 MB 00:00
(9/11): brotli-1.0.6-3.el8.x86_64.rpm 804 kB/s | 323 kB 00:00
(10/11): centos-logos-httpd-85.8-1.el8.noarch.r 188 kB/s | 75 kB 00:00
(11/11): mailcap-2.1.48-3.el8.noarch.rpm 109 kB/s | 39 kB 00:00
--------------------------------------------------------------------------------
Total 1.4 MB/s | 2.4 MB 00:01
warning: /var/cache/dnf/appstream-02e86d1c976ab532/packages/apr-1.6.3-11.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS Linux 8 - AppStream 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x8483C65D:
Userid : "CentOS (CentOS Official Signing Key) <security@centos.org>"
Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : apr-1.6.3-11.el8.x86_64 1/11
Running scriptlet: apr-1.6.3-11.el8.x86_64 1/11
Installing : apr-util-bdb-1.6.1-6.el8.x86_64 2/11
Installing : apr-util-openssl-1.6.1-6.el8.x86_64 3/11
Installing : apr-util-1.6.1-6.el8.x86_64 4/11
Running scriptlet: apr-util-1.6.1-6.el8.x86_64 4/11
Installing : httpd-tools-2.4.37-39.module_el8.4.0+778+c970deab. 5/11
Installing : mailcap-2.1.48-3.el8.noarch 6/11
Installing : centos-logos-httpd-85.8-1.el8.noarch 7/11
Installing : brotli-1.0.6-3.el8.x86_64 8/11
Running scriptlet: httpd-filesystem-2.4.37-39.module_el8.4.0+778+c970 9/11
Installing : httpd-filesystem-2.4.37-39.module_el8.4.0+778+c970 9/11
Installing : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86 10/11
Installing : httpd-2.4.37-39.module_el8.4.0+778+c970deab.x86_64 11/11
Running scriptlet: httpd-2.4.37-39.module_el8.4.0+778+c970deab.x86_64 11/11
Verifying : apr-1.6.3-11.el8.x86_64 1/11
Verifying : apr-util-1.6.1-6.el8.x86_64 2/11
Verifying : apr-util-bdb-1.6.1-6.el8.x86_64 3/11
Verifying : apr-util-openssl-1.6.1-6.el8.x86_64 4/11
Verifying : httpd-2.4.37-39.module_el8.4.0+778+c970deab.x86_64 5/11
Verifying : httpd-filesystem-2.4.37-39.module_el8.4.0+778+c970 6/11
Verifying : httpd-tools-2.4.37-39.module_el8.4.0+778+c970deab. 7/11
Verifying : mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86 8/11
Verifying : brotli-1.0.6-3.el8.x86_64 9/11
Verifying : centos-logos-httpd-85.8-1.el8.noarch 10/11
Verifying : mailcap-2.1.48-3.el8.noarch 11/11
Installed:
apr-1.6.3-11.el8.x86_64
apr-util-1.6.1-6.el8.x86_64
apr-util-bdb-1.6.1-6.el8.x86_64
apr-util-openssl-1.6.1-6.el8.x86_64
brotli-1.0.6-3.el8.x86_64
centos-logos-httpd-85.8-1.el8.noarch
httpd-2.4.37-39.module_el8.4.0+778+c970deab.x86_64
httpd-filesystem-2.4.37-39.module_el8.4.0+778+c970deab.noarch
httpd-tools-2.4.37-39.module_el8.4.0+778+c970deab.x86_64
mailcap-2.1.48-3.el8.noarch
mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64
Complete!
---> b2859afd4810
Removing intermediate container 648014fc8a31
Successfully built b2859afd4810
[root@darksharavim home]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
myweb 01 b2859afd4810 About a minute ago 260 MB
https://docs.docker.com/engine/reference/builder/
728x90
반응형
'# Virtualation > Docker' 카테고리의 다른 글
docker container 재시작 정책 수정 (0) | 2022.11.18 |
---|---|
[도커]docker timezone 설정 (0) | 2021.08.30 |
docker oracle 12c 설치 (0) | 2021.08.09 |
docker 컨테이너에서 vi 사용 (0) | 2021.08.05 |
docker mssql 2019 설치 (0) | 2021.08.05 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!