【Docker实战之入门】构建db镜像 docker build -t csphere/mysql
发布时间:2020-12-16 03:50:12 所属栏目:安全 来源:网络整理
导读:table class="text" tr class="li1" td class="ln"pre class="de1"1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
<table class="text"> |
<tr class="li1">
<td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
fd1f7619e63e
Step 1 : MAINTAINER Carson,C.J.Zeong
?---> Using cache
?---> 52ce842e48d3
Step 2 : ENV DATA_DIR /var/lib/mysql
?---> Running in df5165b94e4c
?---> f09864e729db
Removing intermediate container df5165b94e4c
Step 3 : RUN yum install -y mariadb mariadb-server && ? ? yum clean all
?---> Running in 55bf02338863
Loaded plugins: fastestmirror
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.56-2.el7 will be installed
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.56-2.el7 for package: 1:mariadb-5.5.56-2.el7.x86_64
---> Package mariadb-server.x86_64 1:5.5.56-2.el7 will be installed
--> Processing Dependency: perl-DBI for package: 1:mariadb-server-5.5.56-2.el7.x86_64
--> Processing Dependency: perl-DBD-MySQL for package: 1:mariadb-server-5.5.56-2.el7.x86_64
--> Processing Dependency: perl(DBI) for package: 1:mariadb-server-5.5.56-2.el7.x86_64
--> Processing Dependency: libaio.so.1(LIBAIO_0.4)(64bit) for package: 1:mariadb-server-5.5.56-2.el7.x86_64
--> Processing Dependency: libaio.so.1(LIBAIO_0.1)(64bit) for package: 1:mariadb-server-5.5.56-2.el7.x86_64
--> Processing Dependency: libaio.so.1()(64bit) for package: 1:mariadb-server-5.5.56-2.el7.x86_64
--> Running transaction check
---> Package libaio.x86_64 0:0.3.109-13.el7 will be installed
---> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.023-5.el7 will be installed
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64
--> Running transaction check
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Running transaction check
---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed
--> Running transaction check
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed
--> Finished Dependency Resolution
?
Dependencies Resolved
?
================================================================================
?Package ? ? ? ? ? ? ? ? ? ? ?Arch ? ? ? ?Version ? ? ? ? ? ? ? Repository
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Size
================================================================================
Installing:
?mariadb ? ? ? ? ? ? ? ? ? ? ?x86_64 ? ? ?1:5.5.56-2.el7 ? ? ? ?base ? ? ?8.7 M
?mariadb-server ? ? ? ? ? ? ? x86_64 ? ? ?1:5.5.56-2.el7 ? ? ? ?base ? ? ? 11 M
Installing for dependencies:
?libaio ? ? ? ? ? ? ? ? ? ? ? x86_64 ? ? ?0.3.109-13.el7 ? ? ? ?base ? ? ? 24 k
?mariadb-libs ? ? ? ? ? ? ? ? x86_64 ? ? ?1:5.5.56-2.el7 ? ? ? ?base ? ? ?757 k
?perl-Compress-Raw-Bzip2 ? ? ?x86_64 ? ? ?2.061-3.el7 ? ? ? ? ? base ? ? ? 32 k
?perl-Compress-Raw-Zlib ? ? ? x86_64 ? ? ?1:2.061-4.el7 ? ? ? ? base ? ? ? 57 k
?perl-DBD-MySQL ? ? ? ? ? ? ? x86_64 ? ? ?4.023-5.el7 ? ? ? ? ? base ? ? ?140 k
?perl-DBI ? ? ? ? ? ? ? ? ? ? x86_64 ? ? ?1.627-4.el7 ? ? ? ? ? base ? ? ?802 k
?perl-IO-Compress ? ? ? ? ? ? noarch ? ? ?2.061-2.el7 ? ? ? ? ? base ? ? ?260 k
?perl-Net-Daemon ? ? ? ? ? ? ?noarch ? ? ?0.48-5.el7 ? ? ? ? ? ?base ? ? ? 51 k
?perl-PlRPC ? ? ? ? ? ? ? ? ? noarch ? ? ?0.2020-14.el7 ? ? ? ? base ? ? ? 36 k
?
Transaction Summary
================================================================================
Install ?2 Packages (+9 Dependent packages)
?
Total download size: 22 M
Installed size: 115 M
Downloading packages:
--------------------------------------------------------------------------------
Total ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?178 kB/s | ?22 MB ?02:06 ? ?
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
? Installing : 1:mariadb-libs-5.5.56-2.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ?1/11
? Installing : 1:mariadb-5.5.56-2.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 2/11
? Installing : libaio-0.3.109-13.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?3/11
? Installing : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 ? ? ? ? ? ? ? ? ?4/11
? Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 ? ? ? ? ? ? ? ? 5/11
? Installing : perl-IO-Compress-2.061-2.el7.noarch ? ? ? ? ? ? ? ? ? ? ? ? 6/11
? Installing : perl-Net-Daemon-0.48-5.el7.noarch ? ? ? ? ? ? ? ? ? ? ? ? ? 7/11
? Installing : perl-PlRPC-0.2020-14.el7.noarch ? ? ? ? ? ? ? ? ? ? ? ? ? ? 8/11
? Installing : perl-DBI-1.627-4.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 9/11
? Installing : perl-DBD-MySQL-4.023-5.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ?10/11
? Installing : 1:mariadb-server-5.5.56-2.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? 11/11
? Verifying ?: perl-DBD-MySQL-4.023-5.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? 1/11
? Verifying ?: perl-Net-Daemon-0.48-5.el7.noarch ? ? ? ? ? ? ? ? ? ? ? ? ? 2/11
? Verifying ?: perl-PlRPC-0.2020-14.el7.noarch ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3/11
? Verifying ?: 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 ? ? ? ? ? ? ? ? 4/11
? Verifying ?: 1:mariadb-libs-5.5.56-2.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ?5/11
? Verifying ?: perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 ? ? ? ? ? ? ? ? ?6/11
? Verifying ?: 1:mariadb-server-5.5.56-2.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ?7/11
? Verifying ?: libaio-0.3.109-13.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?8/11
? Verifying ?: perl-DBI-1.627-4.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 9/11
? Verifying ?: perl-IO-Compress-2.061-2.el7.noarch ? ? ? ? ? ? ? ? ? ? ? ?10/11
? Verifying ?: 1:mariadb-5.5.56-2.el7.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?11/11
?
Installed:
? mariadb.x86_64 1:5.5.56-2.el7 ? ? ? mariadb-server.x86_64 1:5.5.56-2.el7 ? ? ?
?
Dependency Installed:
? libaio.x86_64 0:0.3.109-13.el7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? mariadb-libs.x86_64 1:5.5.56-2.el7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? perl-DBD-MySQL.x86_64 0:4.023-5.el7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? perl-DBI.x86_64 0:1.627-4.el7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? perl-IO-Compress.noarch 0:2.061-2.el7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? perl-Net-Daemon.noarch 0:0.48-5.el7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? perl-PlRPC.noarch 0:0.2020-14.el7 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?
Complete!
Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum,to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
?---> 1356fea3da4f
Removing intermediate container 55bf02338863
Step 4 : ADD mysqld_charset.cnf /etc/my.cnf.d/
?---> 5d2dd12779f7
Removing intermediate container a81ca8888de6
Step 5 : COPY scripts /scripts
?---> d37d7f80e0a6
Removing intermediate container 25c3b84a20b2
Step 6 : RUN chmod +x /scripts/start
?---> Running in b53ad101dd07
?---> ab8a243430eb
Removing intermediate container b53ad101dd07
Step 7 : EXPOSE 3306
?---> Running in faf3f27a0e2a
?---> 9ec6573113bc
Removing intermediate container faf3f27a0e2a
Step 8 : VOLUME /var/lib/mysql
?---> Running in d6e19f4aa294
?---> f3aa84076eaa
Removing intermediate container d6e19f4aa294
Step 9 : ENTRYPOINT /scripts/start
?---> Running in 6115816f58cb
?---> e147ac2a588e
Removing intermediate container 6115816f58cb
Successfully built e147ac2a588e
[root@Optimus mysql]#
?
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!